mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
e52c1d16fe
* Add Travis postgresql setup. * Replace "db mocks" with a before hook that creates the same data through the HTTP API. * Reset DB and re-create all fixtures for each test. We'll need something better here. * CAVEAT: no concept of a dev vs test database. Running tests will clear data from the currently configured database.
18 lines
455 B
JavaScript
18 lines
455 B
JavaScript
var request = require('./specHelper').request;
|
|
|
|
describe('The event api', function () {
|
|
it('returns events', function (done) {
|
|
request
|
|
.get('/events')
|
|
.expect('Content-Type', /json/)
|
|
.expect(200, done);
|
|
});
|
|
|
|
it('returns events given a name', function (done) {
|
|
request
|
|
.get('/events/myname')
|
|
.expect('Content-Type', /json/)
|
|
.expect(200, done);
|
|
});
|
|
|
|
}); |