Skip to content

Commit ded5eda

Browse files
committed
chore: Fix CI.
1 parent 20a7454 commit ded5eda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/validation.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async function buildServer(options: FastifyPluginOptions = {}): Promise<FastifyI
8383
server.get('/undeclared-response', {
8484
schema: {
8585
response: {
86-
[StatusCodes.OK]: {
86+
[OK]: {
8787
type: 'object',
8888
properties: {
8989
a: {
@@ -99,7 +99,7 @@ async function buildServer(options: FastifyPluginOptions = {}): Promise<FastifyI
9999
}
100100
},
101101
async handler(_r: FastifyRequest, reply: FastifyReply): Promise<object> {
102-
reply.code(StatusCodes.ACCEPTED)
102+
reply.code(ACCEPTED)
103103
return { a: 1 }
104104
}
105105
})
@@ -440,7 +440,7 @@ t.test('Response Validation', (t: Test) => {
440440

441441
const response = await server!.inject({ method: 'GET', url: '/undeclared-response' })
442442

443-
t.equal(response.statusCode, StatusCodes.ACCEPTED)
443+
t.equal(response.statusCode, ACCEPTED)
444444
t.deepEqual(JSON.parse(response.payload), { a: 1 })
445445
})
446446

0 commit comments

Comments
 (0)