UNPKG

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