From 3dd85cb7f14cc0aa01e627015724d51fd1ec5154 Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Sat, 27 Aug 2016 00:36:04 +0200 Subject: [PATCH] test(tools): make the test suite to pass on Windows (#10926) --- tools/@angular/tsc-wrapped/test/typescript.mocks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/@angular/tsc-wrapped/test/typescript.mocks.ts b/tools/@angular/tsc-wrapped/test/typescript.mocks.ts index f5abe4aa9b..d3f7e01485 100644 --- a/tools/@angular/tsc-wrapped/test/typescript.mocks.ts +++ b/tools/@angular/tsc-wrapped/test/typescript.mocks.ts @@ -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'); }