@@ -129,15 +129,15 @@ describe('vulnerability-reporter', () => {
129129 it ( 'should create span on the fly' , ( ) => {
130130 const vulnerability =
131131 vulnerabilityAnalyzer . _createVulnerability ( 'INSECURE_HASHING' , { value : 'sha1' } , undefined ,
132- { path : 'filename.js' , line : 73 } , 1 )
132+ { path : 'filename.js' , line : 73 } , '1' )
133133 addVulnerability ( undefined , vulnerability , [ ] )
134134 expect ( fakeTracer . startSpan ) . to . have . been . calledOnceWithExactly ( 'vulnerability' , { type : 'vulnerability' } )
135135 expect ( onTheFlySpan . addTags . firstCall ) . to . have . been . calledWithExactly ( {
136136 '_dd.iast.enabled' : 1
137137 } )
138138 expect ( onTheFlySpan . addTags . secondCall ) . to . have . been . calledWithExactly ( {
139139 '_dd.iast.json' : '{"sources":[],"vulnerabilities":[{"type":"INSECURE_HASHING","hash":3410512655,' +
140- '"stackId":1," evidence":{"value":"sha1"},"location":{"spanId":42,"path":"filename.js","line":73}}]}'
140+ '" evidence":{"value":"sha1"},"location":{"spanId":42,"stackId":"1" ,"path":"filename.js","line":73}}]}'
141141 } )
142142 expect ( prioritySampler . setPriority )
143143 . to . have . been . calledOnceWithExactly ( onTheFlySpan , USER_KEEP , SAMPLING_MECHANISM_APPSEC )
0 commit comments