Skip to content

Commit 17ffd51

Browse files
committed
Use LF-only in our own files
1 parent 6744c10 commit 17ffd51

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/harness/fourslashImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ export class TestState {
689689
throw new Error("Expected exactly one output from emit of " + this.activeFile.fileName);
690690
}
691691

692-
const evaluation = new Function(`${emit.outputFiles[0].text};\r\nreturn (${expr});`)(); // eslint-disable-line no-new-func
692+
const evaluation = new Function(`${emit.outputFiles[0].text};\nreturn (${expr});`)(); // eslint-disable-line no-new-func
693693
if (evaluation !== value) {
694694
this.raiseError(`Expected evaluation of expression "${expr}" to equal "${value}", but got "${evaluation}"`);
695695
}

src/harness/harnessIO.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ export function setHarnessIO(io: IO) {
4646
}
4747

4848
// harness always uses one kind of new line
49-
// But note that `parseTestData` in `fourslash.ts` uses "\n"
50-
export const harnessNewLine = "\r\n";
49+
export const harnessNewLine = "\n";
5150

5251
// Root for file paths that are stored in a virtual file system
5352
export const virtualFileSystemRoot = "/";

src/testRunner/unittests/services/languageService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function Component(x: Config): any;`
8282
diagnostics: ts.emptyArray,
8383
outputFiles: [{
8484
name: "foo.d.ts",
85-
text: "export {};\r\n",
85+
text: "export {};\n",
8686
writeByteOrderMark: false
8787
}],
8888
}

0 commit comments

Comments
 (0)