1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

fix lint and mock

This commit is contained in:
sveisvei 2016-12-06 09:27:32 +01:00 committed by ivaosthu
parent 80d3f5be1c
commit 50f3cf9a82
3 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,4 @@
/* eslint camelcase:off */
'use strict'; 'use strict';
const COLUMNS = ['app_name', 'created_at', 'updated_at', 'description', 'url', 'color', 'icon']; const COLUMNS = ['app_name', 'created_at', 'updated_at', 'description', 'url', 'color', 'icon'];

View File

@ -0,0 +1,6 @@
'use strict';
module.exports = () => ({
upsert: () => Promise.resolve(),
getApplicationMetaData: () => Promise.resolve([]),
});

View File

@ -3,6 +3,7 @@
const ClientMetricsStore = require('./fake-metrics-store'); const ClientMetricsStore = require('./fake-metrics-store');
const clientStrategyStore = require('./fake-client-strategy-store'); const clientStrategyStore = require('./fake-client-strategy-store');
const clientInstanceStore = require('./fake-client-instance-store'); const clientInstanceStore = require('./fake-client-instance-store');
const clientApplicationsStore = require('./fake-client-applications-store');
const featureToggleStore = require('./fake-feature-toggle-store'); const featureToggleStore = require('./fake-feature-toggle-store');
const eventStore = require('./fake-event-store'); const eventStore = require('./fake-event-store');
const strategyStore = require('./fake-strategies-store'); const strategyStore = require('./fake-strategies-store');
@ -19,6 +20,7 @@ module.exports = {
return { return {
db, db,
clientApplicationsStore: clientApplicationsStore(),
clientMetricsStore: new ClientMetricsStore(), clientMetricsStore: new ClientMetricsStore(),
clientStrategyStore: clientStrategyStore(), clientStrategyStore: clientStrategyStore(),
clientInstanceStore: clientInstanceStore(), clientInstanceStore: clientInstanceStore(),