customerService = {
get: (): Observable<Customer> => of({...})
} as unknown as CustomerService;
The conversion to unknown makes the TypeScript compiler happy and we can focus on stubbing the single methods that we really need in a test.
customerService = {
get: (): Observable<Customer> => of({...})
} as unknown as CustomerService;
The conversion to unknown makes the TypeScript compiler happy and we can focus on stubbing the single methods that we really need in a test.