Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
khanayan123 committed Jun 10, 2024
1 parent 2e78c8b commit dd02feb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/dd-trace/test/tagger.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ describe('tagger', () => {
tagger.add(carrier, {
[ERROR_TYPE]: 'foo',
[ERROR_MESSAGE]: 'foo',
[ERROR_STACK]: 'foo'
[ERROR_STACK]: 'foo',
doNotSetTraceError: true
})

expect(carrier).to.have.property(ERROR_TYPE, 'foo')
expect(carrier).to.have.property(ERROR_MESSAGE, 'foo')
expect(carrier).to.have.property(ERROR_STACK, 'foo')
expect(carrier).to.have.property('setTraceError', true)
expect(carrier).to.not.have.property('setTraceError')

tagger.add(carrier, {
[ERROR_TYPE]: 'foo',
[ERROR_MESSAGE]: 'foo',
[ERROR_STACK]: 'foo',
doNotSetTraceError: true
[ERROR_STACK]: 'foo'
})

expect(carrier).to.have.property(ERROR_TYPE, 'foo')
Expand Down

0 comments on commit dd02feb

Please sign in to comment.