Skip to content

Commit d950a1d

Browse files
authored
Adjust for line endings on different platforms.
1 parent 2c22a0b commit d950a1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integrationTests/completionProvider.integration.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ suite(`${OmniSharpCompletionProvider.name}: Returns the completion items`, () =>
6767
expect(i.additionalTextEdits[0].range.start.line).to.equal(1);
6868
expect(i.additionalTextEdits[0].range.start.character).to.equal(0);
6969
expect(i.additionalTextEdits[0].range.end.line).to.equal(1);
70-
expect(i.additionalTextEdits[0].range.end.character).to.equal(1);
70+
// Can be either 0 or 1, depending on the platform this test is run on
71+
expect(i.additionalTextEdits[0].range.end.character).to.be.lessThanOrEqual(1).and.greaterThanOrEqual(0);
7172
}
7273
else {
7374
sawEmptyAdditionalTextEdits = true;

0 commit comments

Comments
 (0)