1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/packages/unleash-api/test/e2e/event-api.test.js
Ivar 7ae2b4b65d Introduces the /api path.
Some endpoints are provided on both / and /api
to support older clients.

Closes #162
2016-11-09 22:32:53 +01:00

20 lines
459 B
JavaScript

'use strict';
const request = require('./test-helper').request;
describe('The event api', () => {
it('returns events', done => {
request
.get('/api/events')
.expect('Content-Type', /json/)
.expect(200, done);
});
it('returns events given a name', done => {
request
.get('/api/events/myname')
.expect('Content-Type', /json/)
.expect(200, done);
});
});