|
@@ -1,7 +1,6 @@
|
1
|
1
|
describe('Commands', () => {
|
2
|
2
|
let uut;
|
3
|
3
|
let mockNativeNavigation;
|
4
|
|
- let mockUniqueIdProvider;
|
5
|
4
|
|
6
|
5
|
beforeEach(() => {
|
7
|
6
|
mockNativeNavigation = {
|
|
@@ -9,7 +8,6 @@ describe('Commands', () => {
|
9
|
8
|
};
|
10
|
9
|
require('react-native').NativeModules.NativeNavigation = mockNativeNavigation;
|
11
|
10
|
jest.mock('../providers/UniqueIdProvider');
|
12
|
|
- mockUniqueIdProvider = require('../providers/UniqueIdProvider');
|
13
|
11
|
uut = require('./Commands');
|
14
|
12
|
});
|
15
|
13
|
|
|
@@ -24,7 +22,6 @@ describe('Commands', () => {
|
24
|
22
|
});
|
25
|
23
|
|
26
|
24
|
it('adds uniqueId to passed container', () => {
|
27
|
|
- mockUniqueIdProvider.uniqueId = jest.fn((prefix) => `${prefix}123`);
|
28
|
25
|
uut.startApp({
|
29
|
26
|
container: {
|
30
|
27
|
key: 'com.example.MyScreen'
|