|
@@ -8,11 +8,11 @@ import { AssetService } from '../adapters/AssetResolver';
|
8
|
8
|
|
9
|
9
|
describe('navigation options', () => {
|
10
|
10
|
let uut: OptionsProcessor;
|
11
|
|
- const mockedStore = mock(Store);
|
12
|
|
- const store = instance(mockedStore);
|
|
11
|
+ const mockedStore = mock(Store) as Store;
|
|
12
|
+ const store = instance(mockedStore) as Store;
|
13
|
13
|
|
14
|
14
|
beforeEach(() => {
|
15
|
|
- const mockedAssetService = mock(AssetService);
|
|
15
|
+ const mockedAssetService = mock(AssetService) as AssetService;
|
16
|
16
|
when(mockedAssetService.resolveFromRequire(anyNumber())).thenReturn({
|
17
|
17
|
height: 100,
|
18
|
18
|
scale: 1,
|
|
@@ -21,7 +21,7 @@ describe('navigation options', () => {
|
21
|
21
|
});
|
22
|
22
|
const assetService = instance(mockedAssetService);
|
23
|
23
|
|
24
|
|
- const mockedColorService = mock(ColorService);
|
|
24
|
+ const mockedColorService = mock(ColorService) as ColorService;
|
25
|
25
|
when(mockedColorService.toNativeColor(anyString())).thenReturn(666);
|
26
|
26
|
const colorService = instance(mockedColorService);
|
27
|
27
|
|