Skip to content

Commit eb18c3c

Browse files
committed
Added test case for tap.
1 parent fc6b779 commit eb18c3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

javascript/ql/test/library-tests/TripleDot/underscore.string.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,8 @@ function chaining() {
117117
.strip().lstrip().rstrip().camelcase()
118118
.q(source("s17")).ljust(10, source("s18"))
119119
.rjust(10, source("s19"))); // $ hasTaintFlow=s16 hasTaintFlow=s17 hasTaintFlow=s18 hasTaintFlow=s19
120+
121+
sink(s(source("s20")).tap(function(value) {
122+
return value + source("s21");
123+
}).value()); // $ MISSING: hasTaintFlow=s20 MISSING: hasTaintFlow=s21
120124
}

0 commit comments

Comments
 (0)