1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/unleash-server/test/eventDbMock.js
Ivar Conradi Østhus c991fed69c #18 storing events when they are created.
Also introduced mockery to mock db-access. Here we probably
need better modularisation and/or better dependecy management
(injecting of deps?).
2014-10-23 12:04:24 +02:00

13 lines
239 B
JavaScript

var Promise = require('bluebird');
function storeEvent(event) {
console.log('using eventDbMock to store: ', event);
return new Promise(function (resolve) {
resolve();
});
}
module.exports = {
store: storeEvent
};