Skip to content

Commit

Permalink
fix: typos in test
Browse files Browse the repository at this point in the history
Signed-off-by: naseemkullah <[email protected]>
  • Loading branch information
naseemkullah committed Jan 24, 2021
1 parent e258d5e commit 65b7349
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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({}, () => {
Expand All @@ -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';
Expand All @@ -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;
Expand All @@ -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';

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 65b7349

Please sign in to comment.