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-feature-toggle-store.js
2016-11-10 15:52:49 +01:00

12 lines
221 B
JavaScript

'use strict';
const _features = [];
module.exports = {
getFeatures: () => Promise.resolve(_features),
addFeature: (feature) => _features.push(feature),
reset: () => {
_features.lengyh = 0;
},
};