drone-with-nodejs/spec.js
Brad Rydzewski bd3df756e5
All checks were successful
continuous-integration/drone/push Build is passing
initial commit
2018-06-14 12:27:04 -07:00

20 lines
455 B
JavaScript

var request = require('supertest');
describe('loading express', function () {
var server;
beforeEach(function () {
server = require('./server');
});
afterEach(function () {
server.close();
});
it('responds to /', function testSlash(done) {
request(server)
.get('/')
.expect(200, done);
});
it('404 everything else', function testPath(done) {
request(server)
.get('/foo/bar')
.expect(404, done);
});
});