Last active
December 18, 2019 16:56
-
-
Save hellotunmbi/2f58ad5d9827866a4e2fe65f5257549f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//movies.spec.js | |
const supertest = require('supertest'); | |
const app = require('../server'); | |
describe("Testing the movies API", () => { | |
it("tests the base route and returns true for status", async () => { | |
const response = await supertest(app).get('/'); | |
expect(response.status).toBe(200); | |
expect(response.body.status).toBe(true); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment