File tree 3 files changed +3
-4
lines changed
testRunner/unittests/services
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -689,7 +689,7 @@ export class TestState {
689
689
throw new Error ( "Expected exactly one output from emit of " + this . activeFile . fileName ) ;
690
690
}
691
691
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
693
693
if ( evaluation !== value ) {
694
694
this . raiseError ( `Expected evaluation of expression "${ expr } " to equal "${ value } ", but got "${ evaluation } "` ) ;
695
695
}
Original file line number Diff line number Diff line change @@ -46,8 +46,7 @@ export function setHarnessIO(io: IO) {
46
46
}
47
47
48
48
// 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" ;
51
50
52
51
// Root for file paths that are stored in a virtual file system
53
52
export const virtualFileSystemRoot = "/" ;
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export function Component(x: Config): any;`
82
82
diagnostics : ts . emptyArray ,
83
83
outputFiles : [ {
84
84
name : "foo.d.ts" ,
85
- text : "export {};\r\ n" ,
85
+ text : "export {};\n" ,
86
86
writeByteOrderMark : false
87
87
} ] ,
88
88
}
You can’t perform that action at this time.
0 commit comments