Skip to content

Commit dea185b

Browse files
committed
JS: Make overriding ConsistencyChecking.getATestFile() optional
1 parent 167f5f3 commit dea185b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/test/testUtilities/ConsistencyChecking.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private predicate falseNegative(File file, int line, AssertionComment comment, C
129129
private File getATestFile(string conf) {
130130
not exists(any(ConsistencyConfiguration res).getAFile()) and
131131
result = any(LineComment comment).getFile() and
132-
conf = ""
132+
(conf = "" or conf instanceof ConsistencyConfiguration)
133133
or
134134
result = conf.(ConsistencyConfiguration).getAFile()
135135
}

0 commit comments

Comments
 (0)