refactor(ivy): fix typo in ngtsc "listLazyRoutes" method (#28831)
Fixes a minor typo in the `listLazyRoutes` method for `ngtsc`. Also in addition fixes that a newly introduced test for `listLazyRoutes` broke the tests in Windows. It's clear that we still don't run tests against Windows, but we also made all other tests pass (without CI verification), and it's not a big deal fixing this while being at it. PR Close #28831
This commit is contained in:

committed by
Ben Lesh

parent
d0b6622b9a
commit
3336de0970
@ -2520,9 +2520,9 @@ describe('ngtsc behavioral tests', () => {
|
||||
export class TestModule {}
|
||||
`);
|
||||
|
||||
const entryModule1 = path.join(env.basePath, 'test#TestModule');
|
||||
const entryModule2 = path.join(env.basePath, 'not-test#TestModule');
|
||||
const entryModule3 = path.join(env.basePath, 'test#NotTestModule');
|
||||
const entryModule1 = path.posix.join(env.basePath, 'test#TestModule');
|
||||
const entryModule2 = path.posix.join(env.basePath, 'not-test#TestModule');
|
||||
const entryModule3 = path.posix.join(env.basePath, 'test#NotTestModule');
|
||||
|
||||
expect(() => env.driveRoutes(entryModule1)).not.toThrow();
|
||||
expect(() => env.driveRoutes(entryModule2))
|
||||
|
Reference in New Issue
Block a user