|
@@ -4,7 +4,7 @@ import { Metrics } from '../SafeArea.types';
|
4
|
4
|
describe('initialWindowMetrics', () => {
|
5
|
5
|
it('is null when no view config is available', () => {
|
6
|
6
|
jest.resetModules();
|
7
|
|
- expect(require('../initialWindowMetrics').initialWindowMetrics).toBe(null);
|
|
7
|
+ expect(require('../InitialWindow').initialWindowMetrics).toBe(null);
|
8
|
8
|
});
|
9
|
9
|
|
10
|
10
|
it('it uses the constant provided by the view config', () => {
|
|
@@ -35,7 +35,7 @@ describe('initialWindowMetrics', () => {
|
35
|
35
|
return { Commands: {} };
|
36
|
36
|
});
|
37
|
37
|
|
38
|
|
- expect(require('../index').initialWindowMetrics).toBe(testMetrics);
|
|
38
|
+ expect(require('../InitialWindow').initialWindowMetrics).toBe(testMetrics);
|
39
|
39
|
expect(UIManager.getViewManagerConfig).toBeCalledWith('RNCSafeAreaView');
|
40
|
40
|
});
|
41
|
41
|
});
|