fix(compiler-cli): normalize mock Windows file paths correctly (#36859)

Since the `MockFileSystemWindows` is case-insensitive, any
drive path that must be added to a normalized path should be lower
case to make the path canonical.

PR Close #36859
This commit is contained in:
Pete Bacon Darwin 2020-05-06 22:13:32 +01:00 committed by Alex Rickabaugh
parent 26eacd4fcb
commit b682bd1916
1 changed files with 1 additions and 1 deletions

View File

@ -42,6 +42,6 @@ export class MockFileSystemWindows extends MockFileSystem {
}
normalize<T extends PathString>(path: T): T {
return path.replace(/^[\/\\]/i, 'C:/').replace(/\\/g, '/') as T;
return path.replace(/^[\/\\]/i, 'c:/').replace(/\\/g, '/') as T;
}
}