Skip to content

Commit

Permalink
Improve span tests
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Jul 19, 2024
1 parent 9642741 commit 297bdfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dd-trace/test/opentracing/span.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ describe('Span', () => {
expect(span.context()._tags).to.have.property('_dd.entry_location.method')
expect(span.context()._tags['_dd.entry_location.file']).to.equal(__filename)
expect(span.context()._tags['_dd.entry_location.line']).to.be.a('string')
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+$/)
expect(Number(span.context()._tags['_dd.entry_location.line'])).to.be.gt(0)
expect(span.context()._tags['_dd.entry_location.method']).to.equal('helloWorld')
})

Expand Down

0 comments on commit 297bdfa

Please sign in to comment.