Remove 404 warning on tests
@@ -66,6 +66,9 @@ describe('Client Component', () => {
clientDetailsFacade = TestBed.inject(ClientDetailsFacade);
location = TestBed.get(Location);
router = TestBed.get(Router);
+
+ // Prevent warnings from 404-ing API requests.
+ spyOn(clientDetailsFacade, 'selectClient');
}));
it('loads client information on route change', () => {
@@ -83,7 +86,6 @@ describe('Client Component', () => {
fakeAsync(() => {
// Prevent warnings from 404-ing API requests.
spyOn(clientPageFacade, 'selectClient');
- spyOn(clientDetailsFacade, 'selectClient');
const subject = new Subject<Client>();
Object.defineProperty(
@@ -123,7 +125,6 @@ describe('Client Component', () => {
fakeAsync(() => {
// Prevent warnings from 404-ing API requests.
spyOn(clientPageFacade, 'selectClient');
- spyOn(clientDetailsFacade, 'selectClient');
const subject = new Subject<Client>();
Object.defineProperty(
