Replies: 1 comment
-
I think you need a createRoutingFactory instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a lazy loaded loaded module with some routes like
{ path: 'home', component: HomeComponent }, { path: 'another', component: AnotherComponent},
in home component we have a button which navigates to AnotherComponent using the routerlink attribute as routerLink='.../another'
i want to test the navigation of the button in HomeComponent. How can i do that?
I am trying as below but it does not work
`
fit("should navigate to another page", async () => {
spectator = createComponent({ providers });
Beta Was this translation helpful? Give feedback.
All reactions