Skip to content

Commit

Permalink
refactor: assert more about instrumentation library
Browse files Browse the repository at this point in the history
  • Loading branch information
mwear committed Jun 11, 2020
1 parent 8b8795d commit 4e65c7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/opentelemetry-tracing/test/Span.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ describe('Span', () => {
assert.deepStrictEqual(span.attributes, {});
assert.deepStrictEqual(span.links, []);
assert.deepStrictEqual(span.events, []);

assert.ok(span.instrumentationLibrary);
const { name, version } = span.instrumentationLibrary;
assert.strictEqual(name, 'default');
assert.strictEqual(version, '*');
});

it('should return ReadableSpan with attributes', () => {
Expand Down

0 comments on commit 4e65c7a

Please sign in to comment.