1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var chai_1 = require("chai");
|
4 | var index_1 = require("../index");
|
5 | function mockTracerimplementationTests() {
|
6 | describe('Mock Tracer API tests', function () {
|
7 | describe('Tracer#report', function () {
|
8 | it('should not throw exceptions when running report', function () {
|
9 | var tracer = new index_1.MockTracer();
|
10 | var span = tracer.startSpan('test_operation');
|
11 | span.addTags({ key: 'value' });
|
12 | span.finish();
|
13 | chai_1.expect(function () {
|
14 | var report = tracer.report();
|
15 | for (var _i = 0, _a = report.spans; _i < _a.length; _i++) {
|
16 | var span_1 = _a[_i];
|
17 | span_1.tags();
|
18 | }
|
19 | }).to.not.throw(Error);
|
20 | });
|
21 | });
|
22 | });
|
23 | }
|
24 | exports.default = mockTracerimplementationTests;
|
25 |
|
\ | No newline at end of file |