test: fix tests in windows ci (#30451)

PR Close #30451
This commit is contained in:
Alan
2019-05-14 14:21:30 +02:00
committed by Alex Rickabaugh
parent 06efc340b6
commit c7f9a95a3f
3 changed files with 9 additions and 7 deletions

View File

@ -67,7 +67,7 @@ export class LogicalFileSystem {
* `logicalPathOfFile(AbsoluteFsPath.fromSourceFile(sf))`.
*/
logicalPathOfSf(sf: ts.SourceFile): LogicalProjectPath|null {
return this.logicalPathOfFile(sf.fileName as AbsoluteFsPath);
return this.logicalPathOfFile(AbsoluteFsPath.from(sf.fileName));
}
/**