mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
d89ce75906
* reduce setup duplication * consistent test file names
18 lines
480 B
JavaScript
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);
|
|
});
|
|
});
|
|
|
|
}); |