1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

Remove spec for EventStore.

This code is well covered anyway, and the test is causing trouble
since emitting the featureCreated event is causing side effects through
other listeners.
This commit is contained in:
Jari Bakken 2014-12-12 13:57:31 +01:00 committed by Ivar Conradi Østhus
parent 5b95f0cfc2
commit 1aca1aac15
2 changed files with 1 additions and 29 deletions

View File

@ -1,28 +0,0 @@
var assert = require('assert'),
eventType = require('../lib/eventType'),
eventStore = require('../lib/eventStore');
describe('EventStore', function () {
describe('#create()', function () {
it('should emit event', function (done) {
eventStore.once(eventType.featureCreated, function (x) {
assert(x);
done();
}
);
var eventData = {
'name': 'mail-server.validate-email-addresses',
'enabled': false,
'strategy': 'default',
'description': 'Feature description'
};
eventStore.create({
type: eventType.featureCreated,
createdBy: 'ole',
data: eventData
});
});
});
});

View File

@ -64,7 +64,7 @@ function destroyFeatures() {
}
function resetDatabase() {
return Promise.all([destroyStrategies(), destroyFeatures()]);
return Promise.all([destroyStrategies(), destroyFeatures()]).then(function (values) { console.log(values); });
}
function setupDatabase() {