1import { StatusBar as ReactNativeStatusBar } from 'react-native'; 2 3import { mockProperty } from './Helpers'; 4import { setStatusBarBackgroundColor } from '../StatusBar'; 5 6describe('setStatusBarBackgroundColor', () => { 7 it('delegates to the React Native StatusBar equivalent', () => { 8 const mock = jest.fn(); 9 mockProperty(ReactNativeStatusBar, 'setBackgroundColor', mock, () => { 10 setStatusBarBackgroundColor('#000', true); 11 expect(mock).toHaveBeenCalledWith('#000', true); 12 }); 13 }); 14}); 15