Skip to content

Commit b9b08bd

Browse files
committed
fix: linter errors
1 parent 62d99ab commit b9b08bd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class APM {
5050
// prometheus stuff
5151
// --------------------------------------------------------------
5252
this.config.NORMALIZE_ENDPOINT = this.config.NORMALIZE_ENDPOINT === undefined ? true : this.config.NORMALIZE_ENDPOINT
53-
if ([1, true, 'true', 'on', 'yes', undefined].indexOf(this.config.COLLECT_DEFAULT_METRICS) >= 0 ) {
53+
if ([1, true, 'true', 'on', 'yes', undefined].indexOf(this.config.COLLECT_DEFAULT_METRICS) >= 0) {
5454
const collectDefaultMetrics = this.client.collectDefaultMetrics
5555
collectDefaultMetrics(this.config.PROM_CLIENT_CONF)
5656
}

tests/main.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ describe('prom-client integration', () => {
1111
apm = new APM()
1212
apm.init()
1313
const data = await apm.client.register.metrics()
14-
expect(data.includes("process_cpu_user_seconds_total")).toEqual(true)
15-
});
14+
expect(data.includes('process_cpu_user_seconds_total')).toEqual(true)
15+
})
1616

1717
it('should support turning off default collection', async () => {
1818
apm = new APM({ COLLECT_DEFAULT_METRICS: false })
1919
apm.init()
2020
const data = await apm.client.register.metrics()
21-
expect(data.includes("process_cpu_user_seconds_total")).toEqual(false)
22-
});
21+
expect(data.includes('process_cpu_user_seconds_total')).toEqual(false)
22+
})
2323

2424
it('should use custom config for prom', async () => {
2525
apm = new APM({

0 commit comments

Comments
 (0)