-
Notifications
You must be signed in to change notification settings - Fork 26.4k
docs(docs-infra): replace deprecated RouterTestingModule with RouterM… #62364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
docs(docs-infra): replace deprecated RouterTestingModule with RouterM… #62364
Conversation
adev/shared-docs/components/breadcrumb/breadcrumb.component.spec.ts
Outdated
Show resolved
Hide resolved
Could you also please reword the commit to |
…odule.forRoot([])
fed1c17
to
8040816
Compare
@@ -23,7 +23,7 @@ describe('Breadcrumb', () => { | |||
navigationStateSpy = jasmine.createSpyObj('NavigationState', ['activeNavigationItem']); | |||
|
|||
TestBed.configureTestingModule({ | |||
imports: [Breadcrumb, RouterTestingModule], | |||
imports: [Breadcrumb, provideRouter([])], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provideRouter
is a provider, not an something we import, could you please fix that. Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provideRouter
is a provider, not an something we import, could you please fix that. Thank you.
Oops, sorry—I forgot about that!
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Replace deprecated RouterTestingModule with RouterModule.forRoot([])
What is the current behavior?
Uses deprecated RouterTestingModule
Issue Number: N/A
What is the new behavior?
Replace deprecated RouterTestingModule with RouterModule.forRoot([])
Does this PR introduce a breaking change?