Created
October 4, 2017 13:38
-
-
Save Pierre-RA/b4df335e284aed334dcd085b8f262a68 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
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