From 58b4e2b811a9f79f46fa16a1eb7bb3ee83de7085 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Tue, 24 Nov 2020 10:35:15 +0100 Subject: [PATCH] MOBILE-3320 tests: Fix silent errors --- src/app/app.component.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/app.component.test.ts b/src/app/app.component.test.ts index 625674ed9..216b99dfe 100644 --- a/src/app/app.component.test.ts +++ b/src/app/app.component.test.ts @@ -16,6 +16,7 @@ import { Observable } from 'rxjs'; import { NavController } from '@ionic/angular'; import { AppComponent } from '@/app/app.component'; +import { CoreApp } from '@services/app'; import { CoreEvents } from '@singletons/events'; import { CoreLangProvider } from '@services/lang'; import { Network, Platform, NgZone } from '@singletons'; @@ -29,6 +30,7 @@ describe('AppComponent', () => { let config: Partial; beforeEach(() => { + mockSingleton(CoreApp, { setStatusBarColor: jest.fn() }); mockSingleton(Network, { onChange: () => new Observable() }); mockSingleton(Platform, { ready: () => Promise.resolve() }); mockSingleton(NgZone, { run: jest.fn() });