From 65b7349bf2008967e16119014560501ea314f13d Mon Sep 17 00:00:00 2001 From: naseemkullah Date: Sun, 24 Jan 2021 14:46:23 -0500 Subject: [PATCH] fix: typos in test Signed-off-by: naseemkullah --- .../test/PrometheusExporter.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/opentelemetry-exporter-prometheus/test/PrometheusExporter.test.ts b/packages/opentelemetry-exporter-prometheus/test/PrometheusExporter.test.ts index 47cc2a2c1ec..a01e661ee0a 100644 --- a/packages/opentelemetry-exporter-prometheus/test/PrometheusExporter.test.ts +++ b/packages/opentelemetry-exporter-prometheus/test/PrometheusExporter.test.ts @@ -67,7 +67,7 @@ describe('PrometheusExporter', () => { }); describe('server', () => { - it('it should start on startServer() and call the callback', done => { + it('should start on startServer() and call the callback', done => { const exporter = new PrometheusExporter({ port: 9722, preventServerStart: true, @@ -79,7 +79,7 @@ describe('PrometheusExporter', () => { }); }); - it('it should listen on the default port and default endpoint', done => { + it('should listen on the default port and default endpoint', done => { const port = PrometheusExporter.DEFAULT_OPTIONS.port; const endpoint = PrometheusExporter.DEFAULT_OPTIONS.endpoint; const exporter = new PrometheusExporter({}, () => { @@ -93,7 +93,7 @@ describe('PrometheusExporter', () => { }); }); - it('it should listen on a custom host, port and endpoint if provided', done => { + it('should listen on a custom host, port and endpoint if provided', done => { const host = 'prometheus.exporter.com'; const port = 9991; const endpoint = '/metric'; @@ -115,7 +115,7 @@ describe('PrometheusExporter', () => { ); }); - it('it should listen on environmentally set host and port', done => { + it('should listen on environmentally set host and port', done => { const envSetHost = 'env-set-host'; const envSetPort = '1234'; process.env.OTEL_EXPORTER_PROMETHEUS_HOST = envSetHost; @@ -132,7 +132,7 @@ describe('PrometheusExporter', () => { }); }); - it('it should not require endpoints to start with a slash', done => { + it('should not require endpoints to start with a slash', done => { const port = 9991; const endpoint = 'metric'; @@ -167,7 +167,7 @@ describe('PrometheusExporter', () => { ); }); - it('it should return a HTTP status 404 if the endpoint does not match', done => { + it('should return a HTTP status 404 if the endpoint does not match', done => { const port = 9912; const endpoint = '/metrics'; const exporter = new PrometheusExporter(