mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
c991fed69c
Also introduced mockery to mock db-access. Here we probably need better modularisation and/or better dependecy management (injecting of deps?).
20 lines
451 B
JavaScript
20 lines
451 B
JavaScript
var eventStore = require('./eventStore'),
|
|
eventType = require('./eventType'),
|
|
featuresMock = require('./featuresMock'),
|
|
logger = require('./logger'),
|
|
Promise = require('bluebird');
|
|
|
|
eventStore.on(eventType.featureCreated, function (event) {
|
|
logger.info('feature created event recieved', event);
|
|
}
|
|
);
|
|
|
|
function getFeatures() {
|
|
return Promise.resolve(featuresMock);
|
|
}
|
|
|
|
module.exports = {
|
|
getFeatures: getFeatures
|
|
};
|
|
|