1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/test/fixtures/fake-client-applications-store.js

13 lines
303 B
JavaScript
Raw Normal View History

2016-12-06 09:27:32 +01:00
'use strict';
2018-01-17 15:31:53 +01:00
const _appliations = [];
2016-12-06 09:27:32 +01:00
module.exports = () => ({
2018-01-17 15:31:53 +01:00
upsert: app => {
_appliations.push(app);
return Promise.resolve();
},
getApplications: () => Promise.resolve(_appliations),
getApplication: appName => _appliations.filter(a => a.name === appName)[0],
2016-12-06 09:27:32 +01:00
});