Skip to content

Commit 3723cf7

Browse files
authored
Merge pull request #18 from helderburato/patch-1
Update server.test.js
2 parents f888aed + 7cec561 commit 3723cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter2/4_end_to_end_tests/1_http_api_tests/server.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const getItems = username => {
1515

1616
test("adding items to a cart", async () => {
1717
const initialItemsResponse = await getItems("lucas");
18-
expect(initialItemsResponse.status).toEqual(404);
18+
expect(initialItemsResponse.status).toBe(404);
1919

2020
const addItemResponse = await addItem("lucas", "cheesecake");
2121
expect(await addItemResponse.json()).toEqual(["cheesecake"]);

0 commit comments

Comments
 (0)