We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f731d3b commit 0c319daCopy full SHA for 0c319da
test/v1-all.test.js
@@ -20,13 +20,15 @@ test("It should return 404 page", () => {
20
test("It should return home info", () => {
21
return request(app).get("/v1").then(response => {
22
expect(response.statusCode).toBe(200)
23
+ expect(response.text).toContain("SpaceX-API")
24
})
25
26
27
// Info Tests
28
test("It should return company info", () => {
29
return request(app).get("/v1/info").then(response => {
30
31
+ expect(response.text).toContain("Elon Musk")
32
33
34
0 commit comments