1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/test/unit/routes/fixtures/fake-metrics-store.js
2020-02-20 08:30:40 +01:00

14 lines
270 B
JavaScript

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