1 | import { Platform } from 'react-native';
|
2 |
|
3 | import * as SplashScreen from '../';
|
4 |
|
5 | // Test that nothing happens on web and SSR
|
6 | // also ensure that no errors are thrown.
|
7 | const works = Platform.OS !== 'web';
|
8 |
|
9 | it(`preventAutoHideAsync doesn't throw`, async () => {
|
10 | expect(await SplashScreen.preventAutoHideAsync()).toBe(works);
|
11 | });
|
12 |
|
13 | it(`hideAsync doesn't throw`, async () => {
|
14 | expect(await SplashScreen.hideAsync()).toBe(works);
|
15 | });
|