Last active
February 11, 2017 04:59
-
-
Save crizstian/8659d2989fabe3d2c1219ab0568d1136 to your computer and use it in GitHub Desktop.
Example of an integration test
This file contains hidden or 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
/* eslint-env mocha */ | |
const supertest = require('supertest') | |
describe('movies-service', () => { | |
const api = supertest('http://192.168.99.100:3000') | |
it('returns a 200 for a collection of movies', (done) => { | |
api.get('/movies/premiers') | |
.expect(200, done) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment