build: fix failing compiler-cli tests on windows (#28550)

Note that this fixes `compiler-cli` tests within `compiler-cli/test`,
but there seem to be remaining `ngcc` tests within `compiler-cli/src`
which aren't working on Windows. This is out-of-scope for this commit.

PR Close #28550
This commit is contained in:
Paul Gschwendtner
2019-01-25 19:50:08 +01:00
committed by Matias Niemelä
parent 91ce8c17ff
commit c378402af4
5 changed files with 96 additions and 62 deletions

View File

@ -70,8 +70,8 @@ describe('ngtools_api (deprecated)', () => {
entryModule: 'src/main#MainModule',
});
expect(routes).toEqual({
'./child#ChildModule': path.resolve(testSupport.basePath, 'src/child.ts'),
'./child2#ChildModule2': path.resolve(testSupport.basePath, 'src/child2.ts'),
'./child#ChildModule': path.posix.join(testSupport.basePath, 'src/child.ts'),
'./child2#ChildModule2': path.posix.join(testSupport.basePath, 'src/child2.ts'),
});
});