17 lines
316 B
JavaScript
17 lines
316 B
JavaScript
const request = require('supertest')
|
|
const expect = require('expect')
|
|
|
|
var app = require('./server').app;
|
|
|
|
it('should return hello world response', (done) => {
|
|
request(app)
|
|
.get('/')
|
|
.expect(404)
|
|
.expect((res) => {
|
|
expect(res.body).toInclude({
|
|
error: 'Page not found'
|
|
})
|
|
})
|
|
.end(done);
|
|
});
|