mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
20 lines
459 B
JavaScript
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);
|
|
});
|
|
});
|