import React from 'react'; import { calculateProps } from '../useThemeProps/utils'; import { NativeBaseProvider } from '../../core/NativeBaseProvider'; import { theme } from '../../theme'; import { renderHook } from '@testing-library/react-hooks'; describe('useCalculateProps', () => { const wrapper = ({ children }: any) => ( {children} ); const colorModeProps = { colorMode: 'light', toggleColorMode: () => {}, setColorMode: () => {}, }; test('No component theme + no props', () => { const { result } = renderHook( () => calculateProps(theme, colorModeProps, {}, {}, 750), { wrapper } ); expect(result.current).toEqual({}); }); });