1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/test/fixtures/fake-metrics-store.js

15 lines
268 B
JavaScript
Raw Normal View History

2016-11-05 17:02:46 +01:00
'use strict';
2016-12-01 17:15:55 +01:00
const { EventEmitter } = require('events');
class FakeMetricsStore extends EventEmitter {
getMetricsLastHour() {
2016-12-01 17:15:55 +01:00
return Promise.resolve([]);
}
insert() {
2016-12-01 17:15:55 +01:00
return Promise.resolve();
}
2016-12-01 17:15:55 +01:00
}
module.exports = FakeMetricsStore;