1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00
unleash.unleash/test/unit/routes/fixtures/fake-feature-toggle-store.js

11 lines
204 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 _features = [];
return {
getFeatures: () => Promise.resolve(_features),
addFeature: (feature) => _features.push(feature),
};
2016-11-05 17:02:46 +01:00
};