1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/test/unit/routes/mocks/fake-strategies-store.js
2016-11-10 15:52:49 +01:00

13 lines
264 B
JavaScript

'use strict';
const _strategies = [{ name: 'default', parameters: {} }];
module.exports = {
getStrategies: () => Promise.resolve(_strategies),
addStrategy: (strat) => _strategies.push(strat),
reset: () => {
_strategies.length = 0;
},
};