Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit e154e00

Browse files
silva-fabiokjin
authored andcommitted
fix: minor tslint issues
1 parent a175446 commit e154e00

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

packages/opencensus-nodejs/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
import {types} from '@opencensus/opencensus-core';
17+
import {types} from '@opencensus/opencensus-core';
1818
import {Tracing} from './trace/tracing';
1919

2020
const tracing: types.Tracing = Tracing.instance;
2121

22-
export { tracing };
23-
22+
export {tracing};

packages/opencensus-nodejs/src/trace/constants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
*/
1616

1717
/** General pupose constants. */
18-
export const Constants = {
18+
const constants = {
1919
DEFAULT_BUFFER_SIZE: 3,
2020
DEFAULT_BUFFER_TIMEOUT: 20000,
2121
DEFAULT_INSTRUMENTATION_MODULES: ['http', 'https', 'mongodb-core'],
2222
SCOPE: '@opencensus',
2323
PLUGIN_PACKAGE_NAME_PREFIX: 'opencensus-instrumentation'
2424
};
25+
26+
export {constants as Constants};

packages/opencensus-nodejs/test/test-tracing.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
import {types} from '@opencensus/opencensus-core';
17+
import {types} from '@opencensus/opencensus-core';
1818
import {classes} from '@opencensus/opencensus-core';
1919
import {logger} from '@opencensus/opencensus-core';
20+
import * as assert from 'assert';
2021

2122
import {Tracing} from '../src/trace/tracing';
22-
import * as assert from 'assert';
2323

2424

2525
const NOOP_EXPORTER = new classes.NoopExporter();
@@ -57,14 +57,12 @@ describe('Tracing', () => {
5757
it('the tracing was started', () => {
5858
tracingStarted = tracing.start();
5959
assert.ok(tracingStarted.tracer.active);
60-
});
61-
it('should tracing.tracer instance with logger', () =>{
62-
63-
tracingStarted = tracing.start({logger:logger.logger('debug')});
60+
});
61+
it('should tracing.tracer instance with logger', () => {
62+
tracingStarted = tracing.start({logger: logger.logger('debug')});
6463
assert.ok(instanceOfLogger(tracingStarted.tracer.logger));
6564
});
66-
it('should tracing.tracer instance with exporter', () =>{
67-
65+
it('should tracing.tracer instance with exporter', () => {
6866
tracingStarted = tracing.start({exporter: NOOP_EXPORTER});
6967
assert.equal(tracingStarted.exporter, NOOP_EXPORTER);
7068
});

0 commit comments

Comments
 (0)