mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
JS: Update test
This commit is contained in:
@@ -5,3 +5,5 @@
|
||||
| tst.js:9:7:9:19 | ~A.indexOf(B) | tst.js:9:8:9:8 | A | tst.js:9:18:9:18 | B | true |
|
||||
| tst.js:12:7:12:25 | A.indexOf(B) === -1 | tst.js:12:7:12:7 | A | tst.js:12:17:12:17 | B | false |
|
||||
| tst.js:13:7:13:22 | A.indexOf(B) < 0 | tst.js:13:7:13:7 | A | tst.js:13:17:13:17 | B | false |
|
||||
| tst.js:20:7:20:28 | strings ... s(A, B) | tst.js:20:24:20:24 | A | tst.js:20:27:20:27 | B | true |
|
||||
| tst.js:21:7:21:43 | strings ... s(A, B) | tst.js:21:39:21:39 | A | tst.js:21:42:21:42 | B | true |
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as _ from 'lodash';
|
||||
|
||||
let strings = goog.require('goog.string');
|
||||
|
||||
function test() {
|
||||
if (A.includes(B)) {}
|
||||
@@ -16,4 +16,7 @@ function test() {
|
||||
if (A.indexOf(B) === 0) {}
|
||||
if (A.indexOf(B) !== 0) {}
|
||||
if (A.indexOf(B) > 0) {}
|
||||
|
||||
if (strings.contains(A, B)) {}
|
||||
if (strings.caseInsensitiveContains(A, B)) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user