Skip to content

Commit bc245ec

Browse files
committed
wip: add test
1 parent ef0d78f commit bc245ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/lib/languages/js/source-code/source-code.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,6 +2311,11 @@ describe("SourceCode", () => {
23112311
/Expected `loc` to be an object with numeric `line` and `column` properties\./u,
23122312
);
23132313

2314+
assert.throws(
2315+
() => sourceCode.getIndexFromLoc(null),
2316+
/Expected `loc` to be an object with numeric `line` and `column` properties\./u,
2317+
);
2318+
23142319
assert.throws(
23152320
() =>
23162321
sourceCode.getIndexFromLoc({

0 commit comments

Comments
 (0)