1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/test/unit/routes/fixtures/fake-strategies-store.js

14 lines
246 B
JavaScript
Raw Normal View History

2016-11-05 17:02:46 +01:00
'use strict';
2016-11-13 15:41:35 +01:00
module.exports = () => {
const _strategies = [{ name: 'default', parameters: {} }];
return {
getStrategies: () => Promise.resolve(_strategies),
addStrategy: (strat) => _strategies.push(strat),
};
2016-11-05 17:02:46 +01:00
};