Skip to content

Commit e2b2d1c

Browse files
committed
JS: Allow arbitrary comments in ConsistencyChecking
Because line comments cannot be used inside JSX elements
1 parent 712c69e commit e2b2d1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/test/testUtilities/ConsistencyChecking.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ deprecated final private class Conf extends string {
4646
}
4747

4848
/**
49-
* A line-comment that asserts whether a result exists at that line or not.
49+
* A comment that asserts whether a result exists at that line or not.
5050
* Can optionally include `[INCONSISTENCY]` to indicate that a consistency issue is expected at the location
5151
*/
52-
private class AssertionComment extends LineComment {
52+
private class AssertionComment extends Comment {
5353
boolean shouldHaveAlert;
5454

5555
AssertionComment() {

0 commit comments

Comments
 (0)