mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
37 lines
958 B
JavaScript
37 lines
958 B
JavaScript
const sinon = require('sinon');
|
|
|
|
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 strategyStore = require('./fake-strategies-store');
|
|
|
|
|
|
|
|
module.exports = {
|
|
createStores: () => {
|
|
const db = {
|
|
select: () => {
|
|
return {
|
|
from: () => Promise.resolve()
|
|
}
|
|
}
|
|
}
|
|
|
|
clientMetricsStore.reset();
|
|
clientStrategyStore.reset();
|
|
clientInstanceStore.reset();
|
|
featureToggleStore.reset();
|
|
strategyStore.reset();
|
|
|
|
return {
|
|
db,
|
|
clientMetricsStore,
|
|
clientStrategyStore,
|
|
clientInstanceStore,
|
|
featureToggleStore,
|
|
strategyStore,
|
|
}
|
|
|
|
}
|
|
}; |