|
@@ -10,6 +10,7 @@ describe('NativeCommandsSender', () => {
|
10
|
10
|
push: jest.fn(),
|
11
|
11
|
pop: jest.fn(),
|
12
|
12
|
popTo: jest.fn(),
|
|
13
|
+ popToRoot: jest.fn(),
|
13
|
14
|
showModal: jest.fn(),
|
14
|
15
|
dismissModal: jest.fn(),
|
15
|
16
|
dismissAllModals: jest.fn()
|
|
@@ -47,6 +48,12 @@ describe('NativeCommandsSender', () => {
|
47
|
48
|
expect(result).toBeDefined();
|
48
|
49
|
});
|
49
|
50
|
|
|
51
|
+ it('popToRoot', async () => {
|
|
52
|
+ const result = await uut.popToRoot('theContainerId');
|
|
53
|
+ expect(mockNativeModule.popToRoot).toHaveBeenCalledTimes(1);
|
|
54
|
+ expect(result).toBeDefined();
|
|
55
|
+ });
|
|
56
|
+
|
50
|
57
|
it('showModal sends to native', async () => {
|
51
|
58
|
const result = await uut.showModal({});
|
52
|
59
|
expect(mockNativeModule.showModal).toHaveBeenCalledTimes(1);
|