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
2021-01-06 18:06:56 +01:00

21 lines
346 B
JavaScript

'use strict';
const { EventEmitter } = require('events');
class FakeMetricsStore extends EventEmitter {
constructor() {
super();
this.setMaxListeners(0);
}
getMetricsLastHour() {
return Promise.resolve([]);
}
insert() {
return Promise.resolve();
}
}
module.exports = FakeMetricsStore;