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

Commit 891202e

Browse files
finished test-tracemanager
1 parent 8c9102d commit 891202e

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

packages/opencensus-core/scripts/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ const unitTestExcludeGlobs: string[] = TRACE_TEST_EXCLUDE_INTEGRATION ? [
2929
`${BUILD_DIRECTORY}/test/test-mysql-pool.js`,
3030
`${BUILD_DIRECTORY}/test/test-plugins-*`,
3131
`${BUILD_DIRECTORY}/test/test-trace-web-frameworks.js`,
32-
`${BUILD_DIRECTORY}/test/test-unpatch.js`
32+
`${BUILD_DIRECTORY}/test/test-unpatch.js`,
33+
`${BUILD_DIRECTORY}/test/test-trace.js`
3334
] : [];
3435

3536
/**
@@ -55,7 +56,7 @@ async function run(steps: string[]) {
5556
await compile({ strict: !!strict, languageLevel });
5657
continue;
5758
} else {
58-
switch (step) {
59+
switch (step) {
5960
case 'run-unit-tests':
6061
await runTests({
6162
includeGlobs: [

packages/opencensus-core/test/test-trace.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Trace', function () {
1212
});
1313

1414
describe('start()', function () {
15-
it('trace was started', function () {
15+
it('the trace was started', function () {
1616
let trace = new Trace();
1717
trace.start();
1818
assert.ok(trace.started);
@@ -23,17 +23,17 @@ describe('Trace', function () {
2323
let trace = new Trace();
2424
trace.start()
2525
let span = trace.startSpan("spanName", "spanType");
26-
it('should be a Span instance', function () {
26+
it('should return a Span instance', function () {
2727
assert.ok(span instanceof Span);
2828
});
2929

30-
it('span was started', function () {
30+
it('the new span was started', function () {
3131
assert.ok(span.started);
3232
});
3333
});
3434

3535
describe('end()', function () {
36-
it('trace was ended', function () {
36+
it('the trace was ended', function () {
3737
let trace = new Trace();
3838
trace.start()
3939
trace.end();
@@ -42,7 +42,7 @@ describe('Trace', function () {
4242
});
4343

4444
describe('end() before trace started', function () {
45-
it('trace was not ended', function () {
45+
it('the trace was not ended', function () {
4646
let trace = new Trace();
4747
trace.end();
4848
assert.ok(!trace.ended);

0 commit comments

Comments
 (0)