test(tools): make the test suite to pass on Windows (#10926)
This commit is contained in:
parent
511fe3d9f8
commit
3dd85cb7f1
|
@ -29,7 +29,7 @@ export class Host implements ts.LanguageServiceHost {
|
|||
getDefaultLibFileName(options: ts.CompilerOptions): string { return 'lib.d.ts'; }
|
||||
|
||||
private getFileContent(fileName: string): string {
|
||||
const names = fileName.split(path.sep);
|
||||
const names = fileName.split('/');
|
||||
if (names[names.length - 1] === 'lib.d.ts') {
|
||||
return fs.readFileSync(ts.getDefaultLibFilePath(this.getCompilationSettings()), 'utf8');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue