1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/test/routerSpec.js
Jari Bakken d89ce75906 Test refactoring:
* reduce setup duplication
* consistent test file names
2014-11-25 14:41:11 +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);
});
});
});