|
@@ -1,20 +0,0 @@
|
1
|
|
-describe('single screen integration', () => {
|
2
|
|
- let Navigation;
|
3
|
|
- let mockNativeNavigation;
|
4
|
|
-
|
5
|
|
- beforeEach(() => {
|
6
|
|
- mockNativeNavigation = {};
|
7
|
|
- require('react-native').NativeModules.NativeNavigation = mockNativeNavigation;
|
8
|
|
- Navigation = require('../../src/index').default;
|
9
|
|
- });
|
10
|
|
-
|
11
|
|
- xit('startApp directs to native with constructed hirarchy for single screens', () => {
|
12
|
|
- mockNativeNavigation.startApp = jest.fn();
|
13
|
|
- Navigation.startApp({
|
14
|
|
- root: {
|
15
|
|
- key: 'com.integration.MyFirstScreen'
|
16
|
|
- }
|
17
|
|
- });
|
18
|
|
- expect(mockNativeNavigation.startApp).toHaveBeenCalledTimes(1);
|
19
|
|
- });
|
20
|
|
-});
|