Skip to content

Instantly share code, notes, and snippets.

@Pierre-RA
Created October 4, 2017 13:38
Show Gist options
  • Save Pierre-RA/b4df335e284aed334dcd085b8f262a68 to your computer and use it in GitHub Desktop.
Save Pierre-RA/b4df335e284aed334dcd085b8f262a68 to your computer and use it in GitHub Desktop.
import * as request from 'supertest';
import {} from 'jest';
import { expect, should } from 'chai';
import * as app from '../server/server';
describe('GET /', () => {
it('should return 200 OK', () => {
return request(app)
.get('/')
.expect(200)
.then(res => {
expect(res.body).have.property('message');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment