Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 493648d

Browse files
committed
Fixed position range on bad file spec
1 parent f2db50e commit 493648d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/linter-lua-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('The Lua provider for Linter', () => {
2727
expect(messages[0].severity).toBe('error');
2828
expect(messages[0].excerpt).toBe(excerpt);
2929
expect(messages[0].location.file).toBe(badFile);
30-
expect(messages[0].location.position).toEqual([[17, 2], [17, 48]]);
30+
expect(messages[0].location.position).toEqual([[18, 0], [18, 3]]);
3131
});
3232

3333
it('checks a file with syntax error with luajit and reports the correct message', async () => {
@@ -40,7 +40,7 @@ describe('The Lua provider for Linter', () => {
4040
expect(messages[0].severity).toBe('error');
4141
expect(messages[0].excerpt).toBe(excerpt);
4242
expect(messages[0].location.file).toBe(badFile);
43-
expect(messages[0].location.position).toEqual([[17, 2], [17, 48]]);
43+
expect(messages[0].location.position).toEqual([[18, 0], [18, 3]]);
4444
});
4545

4646
it('finds nothing wrong with a valid file using luac', async () => {

0 commit comments

Comments
 (0)