We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9642741 commit 297bdfaCopy full SHA for 297bdfa
packages/dd-trace/test/opentracing/span.spec.js
@@ -186,7 +186,8 @@ describe('Span', () => {
186
expect(span.context()._tags).to.have.property('_dd.entry_location.method')
187
expect(span.context()._tags['_dd.entry_location.file']).to.equal(__filename)
188
expect(span.context()._tags['_dd.entry_location.line']).to.be.a('string')
189
- expect(parseInt(span.context()._tags['_dd.entry_location.line'], 10)).to.be.gt(0)
+ expect(span.context()._tags['_dd.entry_location.line']).to.match(/^\d+$/)
190
+ expect(Number(span.context()._tags['_dd.entry_location.line'])).to.be.gt(0)
191
expect(span.context()._tags['_dd.entry_location.method']).to.equal('helloWorld')
192
})
193
0 commit comments