CyTube/test/configuration/prometheusconfig.js
Calvin Montgomery c7bec6251e Begin prometheus integration
Add a dependency on `prom-client` and emit a basic latency metric for
testing purposes.  Add a new configuration file for enabling/disabling
prometheus exporter and configuring the listen address.
2017-07-16 22:35:33 -07:00

11 lines
351 B
JavaScript

const assert = require('assert');
const PrometheusConfig = require('../../lib/configuration/prometheusconfig').PrometheusConfig;
describe('PrometheusConfig', () => {
describe('#constructor', () => {
it('defaults to enabled=false', () => {
assert.strictEqual(new PrometheusConfig().isEnabled(), false);
});
});
});