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

Commit 9e1d0a3

Browse files
committed
chore: fix windows tests
1 parent 1313172 commit 9e1d0a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/linter-eslint-node-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ describe('The eslint provider for Linter', () => {
190190
const messages = await lint(editor);
191191

192192
expect(messages[0].solutions[0].position).toEqual([[0, 10], [1, 8]]);
193-
expect(messages[0].solutions[0].replaceWith).toBe('6\nfunction');
193+
expect(messages[0].solutions[0].replaceWith).toMatch(/^6\s+function$/);
194194

195195
expect(messages[1].solutions[0].position).toEqual([[2, 0], [2, 1]]);
196196
expect(messages[1].solutions[0].replaceWith).toBe(' ');

0 commit comments

Comments
 (0)