1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/test/e2e/health.e2e.test.js
2020-02-20 08:34:18 +01:00

16 lines
384 B
JavaScript

'use strict';
const test = require('ava');
const { setupApp } = require('./helpers/test-helper');
test('returns health good', async t => {
t.plan(0);
const { request, destroy } = await setupApp('health');
return request
.get('/health')
.expect('Content-Type', /json/)
.expect(200)
.expect('{"health":"GOOD"}')
.then(destroy);
});