mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
27 lines
803 B
JavaScript
27 lines
803 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: () => {
|
||
|
clientMetricsStore.reset();
|
||
|
clientStrategyStore.reset();
|
||
|
clientInstanceStore.reset();
|
||
|
featureToggleStore.reset();
|
||
|
strategyStore.reset();
|
||
|
|
||
|
return {
|
||
|
db: sinon.stub(),
|
||
|
clientMetricsStore,
|
||
|
clientStrategyStore,
|
||
|
clientInstanceStore,
|
||
|
featureToggleStore,
|
||
|
strategyStore,
|
||
|
}
|
||
|
|
||
|
}
|
||
|
};
|