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?
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 HotkeyOptionsAny ideas how to fix? I tried importing the
HotkeyModulein 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?