|
@@ -27,10 +27,44 @@ describe('Commands', () => {
|
27
|
27
|
key: 'com.example.MyScreen'
|
28
|
28
|
}
|
29
|
29
|
});
|
|
30
|
+
|
|
31
|
+ expect(mockNativeNavigation.startApp).toHaveBeenCalledWith({
|
|
32
|
+ container: {
|
|
33
|
+ key: 'com.example.MyScreen',
|
|
34
|
+ id: 'container123'
|
|
35
|
+ }
|
|
36
|
+ });
|
|
37
|
+ });
|
|
38
|
+
|
|
39
|
+ it('adds uniqueId to passed sideMenu', () => {
|
|
40
|
+ uut.startApp({
|
|
41
|
+ container: {
|
|
42
|
+ key: 'com.example.MyScreen'
|
|
43
|
+ },
|
|
44
|
+ sideMenu: {
|
|
45
|
+ left: {
|
|
46
|
+ key: 'com.example.SideMenu1'
|
|
47
|
+ },
|
|
48
|
+ right: {
|
|
49
|
+ key: 'com.example.SideMenu2'
|
|
50
|
+ }
|
|
51
|
+ }
|
|
52
|
+ });
|
|
53
|
+
|
30
|
54
|
expect(mockNativeNavigation.startApp).toHaveBeenCalledWith({
|
31
|
55
|
container: {
|
32
|
56
|
key: 'com.example.MyScreen',
|
33
|
57
|
id: 'container123'
|
|
58
|
+ },
|
|
59
|
+ sideMenu: {
|
|
60
|
+ left: {
|
|
61
|
+ key: 'com.example.SideMenu1',
|
|
62
|
+ id: 'container123'
|
|
63
|
+ },
|
|
64
|
+ right: {
|
|
65
|
+ key: 'com.example.SideMenu2',
|
|
66
|
+ id: 'container123'
|
|
67
|
+ }
|
34
|
68
|
}
|
35
|
69
|
});
|
36
|
70
|
});
|