@@ -10,7 +10,7 @@ import {
1010 BadRequestError ,
1111 UnauthorizedError ,
1212} from "../error" ;
13- import { ok , created , noContent } from ' ../response'
13+ import { ok , created , noContent } from " ../response" ;
1414import * as ContextFactory from "../../test/fixtures/ContextFactory" ;
1515import * as APIGatewayProxyEventFactory from "../../test/fixtures/APIGatewayProxyEventFactory" ;
1616
@@ -27,28 +27,28 @@ describe(APIGatewayProxyHandler.name, () => {
2727
2828 it ( "handles HTTP 200 response correctly" , async ( ) => {
2929 const fn = handler . wrapper ( ( ) => {
30- return ok ( { result : "HTTP 200" } )
30+ return ok ( { result : "HTTP 200" } ) ;
3131 } ) as Handler < APIGatewayProxyEvent , APIGatewayProxyResult > ;
3232
33- const result = await fn ( event , context , ( ) => { } ) ;
33+ const result = await fn ( event , context , ( ) => undefined ) ;
3434 expect ( result ) . toMatchSnapshot ( ) ;
3535 } ) ;
3636
3737 it ( "handles HTTP 201 response correctly" , async ( ) => {
3838 const fn = handler . wrapper ( ( ) => {
39- return created ( { result : "HTTP 201" } )
39+ return created ( { result : "HTTP 201" } ) ;
4040 } ) as Handler < APIGatewayProxyEvent , APIGatewayProxyResult > ;
4141
42- const result = await fn ( event , context , ( ) => { } ) ;
42+ const result = await fn ( event , context , ( ) => undefined ) ;
4343 expect ( result ) . toMatchSnapshot ( ) ;
4444 } ) ;
4545
4646 it ( "handles HTTP 204 response correctly" , async ( ) => {
4747 const fn = handler . wrapper ( ( ) => {
48- return noContent ( )
48+ return noContent ( ) ;
4949 } ) as Handler < APIGatewayProxyEvent , APIGatewayProxyResult > ;
5050
51- const result = await fn ( event , context , ( ) => { } ) ;
51+ const result = await fn ( event , context , ( ) => undefined ) ;
5252 expect ( result ) . toMatchSnapshot ( ) ;
5353 } ) ;
5454
0 commit comments