mirror of
https://github.com/BreizhHardware/express-prom-bundle.git
synced 2026-01-18 16:27:28 +01:00
rename metricsType -> metricType, move corresponding readme block 2 paragraphs lower
This commit is contained in:
@@ -186,10 +186,10 @@ describe('index', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('metrics type summary works', done => {
|
||||
it('metric type summary works', done => {
|
||||
const app = express();
|
||||
const bundled = bundle({
|
||||
metricsType: 'summary',
|
||||
metricType: 'summary',
|
||||
percentiles: [0.5, 0.85, 0.99],
|
||||
});
|
||||
app.use(bundled);
|
||||
@@ -207,10 +207,10 @@ describe('index', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('metrics type histogram works', done => {
|
||||
it('metric type histogram works', done => {
|
||||
const app = express();
|
||||
const bundled = bundle({
|
||||
metricsType: 'histogram',
|
||||
metricType: 'histogram',
|
||||
buckets: [10, 100],
|
||||
});
|
||||
app.use(bundled);
|
||||
@@ -230,7 +230,7 @@ describe('index', () => {
|
||||
|
||||
it('throws on unknown metricType ', () => {
|
||||
expect(() => {
|
||||
bundle({metricsType: 'hello',});
|
||||
bundle({metricType: 'hello'});
|
||||
}).toThrow();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user