@@ -10,7 +10,7 @@ import {
10
10
BadRequestError ,
11
11
UnauthorizedError ,
12
12
} from "../error" ;
13
- import { ok , created , noContent } from ' ../response'
13
+ import { ok , created , noContent } from " ../response" ;
14
14
import * as ContextFactory from "../../test/fixtures/ContextFactory" ;
15
15
import * as APIGatewayProxyEventFactory from "../../test/fixtures/APIGatewayProxyEventFactory" ;
16
16
@@ -27,28 +27,28 @@ describe(APIGatewayProxyHandler.name, () => {
27
27
28
28
it ( "handles HTTP 200 response correctly" , async ( ) => {
29
29
const fn = handler . wrapper ( ( ) => {
30
- return ok ( { result : "HTTP 200" } )
30
+ return ok ( { result : "HTTP 200" } ) ;
31
31
} ) as Handler < APIGatewayProxyEvent , APIGatewayProxyResult > ;
32
32
33
- const result = await fn ( event , context , ( ) => { } ) ;
33
+ const result = await fn ( event , context , ( ) => undefined ) ;
34
34
expect ( result ) . toMatchSnapshot ( ) ;
35
35
} ) ;
36
36
37
37
it ( "handles HTTP 201 response correctly" , async ( ) => {
38
38
const fn = handler . wrapper ( ( ) => {
39
- return created ( { result : "HTTP 201" } )
39
+ return created ( { result : "HTTP 201" } ) ;
40
40
} ) as Handler < APIGatewayProxyEvent , APIGatewayProxyResult > ;
41
41
42
- const result = await fn ( event , context , ( ) => { } ) ;
42
+ const result = await fn ( event , context , ( ) => undefined ) ;
43
43
expect ( result ) . toMatchSnapshot ( ) ;
44
44
} ) ;
45
45
46
46
it ( "handles HTTP 204 response correctly" , async ( ) => {
47
47
const fn = handler . wrapper ( ( ) => {
48
- return noContent ( )
48
+ return noContent ( ) ;
49
49
} ) as Handler < APIGatewayProxyEvent , APIGatewayProxyResult > ;
50
50
51
- const result = await fn ( event , context , ( ) => { } ) ;
51
+ const result = await fn ( event , context , ( ) => undefined ) ;
52
52
expect ( result ) . toMatchSnapshot ( ) ;
53
53
} ) ;
54
54
0 commit comments