I have tried to test a guard component in Angular 10. The component has injected service which
An error message: "Error: Cannot call Promise.then from within a