Skip to content

Commit 81c43a3

Browse files
committed
update unit test
1 parent bf0feb2 commit 81c43a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/dd-trace/test/tagger.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ describe('tagger', () => {
5454
tagger.add(carrier, {
5555
[ERROR_TYPE]: 'foo',
5656
[ERROR_MESSAGE]: 'foo',
57-
[ERROR_STACK]: 'foo'
57+
[ERROR_STACK]: 'foo',
58+
doNotSetTraceError: true
5859
})
5960

6061
expect(carrier).to.have.property(ERROR_TYPE, 'foo')
6162
expect(carrier).to.have.property(ERROR_MESSAGE, 'foo')
6263
expect(carrier).to.have.property(ERROR_STACK, 'foo')
63-
expect(carrier).to.have.property('setTraceError', true)
64+
expect(carrier).to.not.have.property('setTraceError')
6465

6566
tagger.add(carrier, {
6667
[ERROR_TYPE]: 'foo',
6768
[ERROR_MESSAGE]: 'foo',
68-
[ERROR_STACK]: 'foo',
69-
doNotSetTraceError: true
69+
[ERROR_STACK]: 'foo'
7070
})
7171

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

0 commit comments

Comments
 (0)