1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/test/routerSpec.js
Jari Bakken 479ea0772a Test refactoring:
* reduce setup duplication
* consistent test file names
2020-02-20 08:30:17 +01:00

18 lines
480 B
JavaScript

var specHelper = require('./specHelper');
describe('The routes', function () {
var request;
before(function () { request = specHelper.setupMockServer(); });
after(specHelper.tearDownMockServer);
describe('healthcheck', function () {
it('returns health good', function (done) {
request.get('/health')
.expect('Content-Type', /json/)
.expect(200)
.expect('{"health":"GOOD"}', done);
});
});
});