1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/unleash-server/test/featureDbMock.js

36 lines
741 B
JavaScript
Raw Normal View History

2014-10-23 13:51:37 +02:00
var Promise = require("bluebird");
var features = [
{
"name": "featureX",
"description": "the #1 feature",
"enabled": true,
"strategy": "default"
},
{
"name": "featureY",
"description": "soon to be the #1 feature",
"enabled": false,
"strategy": "baz",
"parameters": {
"foo": "bar"
}
},
{
"name": "featureZ",
"description": "terrible feature",
"enabled": true,
"strategy": "baz",
"parameters": {
"foo": "rab"
}
}
];
module.exports = {
getFeatures: function() {
return new Promise(function (resolve) {
resolve(features);
});
}
};