UNPKG

expo-splash-screen

Version:

Provides a module to allow keeping the native Splash Screen visible until you choose to hide it.

22 lines (18 loc) 702 B
import { toString } from '../InterfaceBuilder'; import { getIosSplashConfig } from '../getIosSplashConfig'; import { getTemplateAsync } from '../withIosSplashScreenStoryboard'; import { applySplashScreenStoryboard } from '../withIosSplashScreenStoryboardImage'; describe(applySplashScreenStoryboard, () => { it(`gets a splash screen without options`, async () => { const xml = await getTemplateAsync(); const contents = await applySplashScreenStoryboard( xml, getIosSplashConfig({ image: 'splash.png', backgroundColor: '#ff00ff', resizeMode: 'cover', }) ); expect(toString(contents)).not.toMatch(/contentMode="scaleAspectFit"/); }); });