Skip to content

Instantly share code, notes, and snippets.

@hellotunmbi
Last active December 18, 2019 16:56
Show Gist options
  • Save hellotunmbi/2f58ad5d9827866a4e2fe65f5257549f to your computer and use it in GitHub Desktop.
Save hellotunmbi/2f58ad5d9827866a4e2fe65f5257549f to your computer and use it in GitHub Desktop.
//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