test(tools): make the test suite to pass on Windows (#10926)

This commit is contained in:
Marc Laval 2016-08-27 00:36:04 +02:00 committed by Victor Berchet
parent 511fe3d9f8
commit 3dd85cb7f1
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}