Skip to content

Commit bd8055e

Browse files
committed
test: update line/col numbers
1 parent 89e15ee commit bd8055e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/integration/simple.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ describe('simple', () => {
235235
expect(failed.message?.location).to.not.be.undefined;
236236
expect(failed.message?.location?.uri.toString()).to.include('hello.test.js');
237237
expect(path.isAbsolute(failed.message!.location!.uri.fsPath)).to.be.true;
238-
expect(failed.message?.location?.range.start.line).to.equal(12);
239-
expect(failed.message?.location?.range.start.character).to.equal(5);
238+
expect(failed.message?.location?.range.start.line).to.equal(11);
239+
expect(failed.message?.location?.range.start.character).to.equal(4);
240240
});
241241

242242
it('handles file and directory excludes', async () => {
@@ -318,10 +318,10 @@ describe('simple', () => {
318318
});
319319

320320
const failed = run.states.find((s) => s.state === 'failed');
321-
expect(failed!.message!.location!.range.start.line).to.equal(4);
322-
expect(failed!.message!.location!.range.start.character).to.equal(11);
323-
expect(failed!.message!.location!.range.end.line).to.equal(4);
324-
expect(failed!.message!.location!.range.end.character).to.equal(11);
321+
expect(failed!.message!.location!.range.start.line).to.equal(3);
322+
expect(failed!.message!.location!.range.start.character).to.equal(10);
323+
expect(failed!.message!.location!.range.end.line).to.equal(3);
324+
expect(failed!.message!.location!.range.end.character).to.equal(10);
325325
expect(failed!.message!.location!.uri.fsPath).to.equal(item.uri!.fsPath);
326326
});
327327
});

0 commit comments

Comments
 (0)