2016-11-13 15:41:35 +01:00
|
|
|
'use strict';
|
2016-11-11 15:46:59 +01:00
|
|
|
|
2016-12-01 17:15:55 +01:00
|
|
|
const ClientMetricsStore = require('./fake-metrics-store');
|
2016-11-11 15:46:59 +01:00
|
|
|
const clientInstanceStore = require('./fake-client-instance-store');
|
2016-12-06 09:27:32 +01:00
|
|
|
const clientApplicationsStore = require('./fake-client-applications-store');
|
2016-11-11 15:46:59 +01:00
|
|
|
const featureToggleStore = require('./fake-feature-toggle-store');
|
2016-11-15 21:27:03 +01:00
|
|
|
const eventStore = require('./fake-event-store');
|
2016-11-11 15:46:59 +01:00
|
|
|
const strategyStore = require('./fake-strategies-store');
|
|
|
|
|
|
|
|
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-12-06 09:27:32 +01:00
|
|
|
clientApplicationsStore: clientApplicationsStore(),
|
2016-12-01 17:15:55 +01:00
|
|
|
clientMetricsStore: new ClientMetricsStore(),
|
2016-11-13 15:41:35 +01:00
|
|
|
clientInstanceStore: clientInstanceStore(),
|
|
|
|
featureToggleStore: featureToggleStore(),
|
2016-11-15 21:27:03 +01:00
|
|
|
eventStore: eventStore(),
|
2016-11-13 15:41:35 +01:00
|
|
|
strategyStore: strategyStore(),
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|