1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/test/unit/routes/fixtures/store.js

31 lines
917 B
JavaScript
Raw Normal View History

2016-11-13 15:41:35 +01:00
'use strict';
2016-11-11 15:46:59 +01:00
const clientMetricsStore = require('./fake-metrics-store');
const clientStrategyStore = require('./fake-client-strategy-store');
const clientInstanceStore = require('./fake-client-instance-store');
const featureToggleStore = require('./fake-feature-toggle-store');
const eventStore = require('./fake-event-store');
2016-11-11 15:46:59 +01:00
const strategyStore = require('./fake-strategies-store');
2016-11-11 16:24:16 +01:00
2016-11-11 15:46:59 +01:00
module.exports = {
createStores: () => {
2016-11-11 16:24:16 +01:00
const db = {
2016-11-13 15:41:35 +01:00
select: () => ({
from: () => Promise.resolve(),
}),
};
2016-11-11 15:46:59 +01:00
return {
2016-11-11 16:24:16 +01:00
db,
2016-11-13 15:41:35 +01:00
clientMetricsStore: clientMetricsStore(),
clientStrategyStore: clientStrategyStore(),
clientInstanceStore: clientInstanceStore(),
featureToggleStore: featureToggleStore(),
eventStore: eventStore(),
2016-11-13 15:41:35 +01:00
strategyStore: strategyStore(),
};
},
};