Skip to content

Commit c0563d4

Browse files
committed
Added jest to sam
1 parent e3b11c0 commit c0563d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: examples/sam/tests/sam.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ test('getAllItemsHandler function imports & throws correctly', () => {
1111

1212
test('getByIdHandler function imports & throws correctly', () => {
1313
expect(getByIdHandler({} as APIGatewayProxyEvent, {} as Context)).rejects.toThrow(
14-
'getByIdHandler only accepts GET method, you tried: undefined'
14+
'getById only accepts GET method, you tried: undefined'
1515
);
1616
});
1717

1818
test('putItemHandler function imports & throws correctly', () => {
1919
expect(putItemHandler({} as APIGatewayProxyEvent, {} as Context)).rejects.toThrow(
20-
'putItemHandler only accepts POST method, you tried: undefined'
20+
'putItem only accepts POST method, you tried: undefined'
2121
);
2222
});

0 commit comments

Comments
 (0)