You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My unit tests are failing for the components where I'm using the HotkeysService with this error - NullInjectorError: R3InjectorError(DynamicTestModule)[HotkeysService -> InjectionToken HotkeyOptions -> InjectionToken HotkeyOptions]: NullInjectorError: No provider for InjectionToken HotkeyOptions
Any ideas how to fix? I tried importing the HotkeyModule in the tests to no avail
I'm using v2.2.0 with Angular 9.1.6
Update: It worked when I imported HotkeyModule.forRoot() in the unit tests. Is this the right way?
The text was updated successfully, but these errors were encountered:
My unit tests are failing for the components where I'm using the HotkeysService with this error -
NullInjectorError: R3InjectorError(DynamicTestModule)[HotkeysService -> InjectionToken HotkeyOptions -> InjectionToken HotkeyOptions]: NullInjectorError: No provider for InjectionToken HotkeyOptions
Any ideas how to fix? I tried importing the
HotkeyModule
in the tests to no availI'm using v2.2.0 with Angular 9.1.6
Update: It worked when I imported
HotkeyModule.forRoot()
in the unit tests. Is this the right way?The text was updated successfully, but these errors were encountered: