Skip to content

Commit

Permalink
test: workaround Router typings
Browse files Browse the repository at this point in the history
This workaround should be removed after angular/angular#29832 is released.
  • Loading branch information
filipesilva committed Apr 13, 2019
1 parent 5cdd154 commit d2225c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/legacy-cli/e2e/tests/build/lazy-load-syntax.ts
Expand Up @@ -98,6 +98,10 @@ export default async function () {
}
// Both Ivy and View Engine should support it.
await replaceLoadChildren(`() => import('./lazy/lazy.module').then(m => m.LazyModule)`);

// TODO: remove cast after https://github.com/angular/angular/pull/29832 is released.
await replaceInFile(appRoutingModulePath, '];', '] as Routes;');

await ng('e2e');
await ng('e2e', '--prod');
}

0 comments on commit d2225c5

Please sign in to comment.