I have followed the documentation on https://auth0.com/docs/libraries/auth0-angular-spa but there is no documentation on writing unit tests.
I have tried defining authService
in my spec file as follows:
beforeEach(() => {
authService = TestBed.inject(AuthService);
}
But I get the following error:
NullInjectorError: R3InjectorError(DynamicTestModule)[AuthService -> InjectionToken auth0.client -> InjectionToken auth0.client]:
NullInjectorError: No provider for InjectionToken auth0.client!
Please let me know how to test the Angular SDK AuthService