We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ee8000 commit 367bd2dCopy full SHA for 367bd2d
1 file changed
packages/dd-trace/test/appsec/iast/utils.js
@@ -136,6 +136,7 @@ function endResponse (res, appResult) {
136
function checkNoVulnerabilityInRequest (vulnerability, config, done, makeRequest) {
137
agent
138
.use(traces => {
139
+ if (traces[0][0].type !== 'web') throw new Error('Not a web span')
140
// iastJson == undefiend is valid
141
const iastJson = traces[0][0].meta['_dd.iast.json'] || ''
142
expect(iastJson).to.not.include(`"${vulnerability}"`)
0 commit comments