File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments