Skip to content

Commit fcfe3d3

Browse files
committed
added test for 404 page
1 parent d3b5ee9 commit fcfe3d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/v1-all.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ beforeAll((done) => {
99
})
1010
})
1111

12+
// 404 Test
13+
test("It should return 404 page", () => {
14+
return request(app).get("/v2").then(response => {
15+
expect(response.statusCode).toBe(404)
16+
})
17+
})
18+
1219
// Home Tests
1320
test("It should return home info", () => {
1421
return request(app).get("/v1").then(response => {

0 commit comments

Comments
 (0)