From 13e1d4cc2194132b1da08fd257c1a81fadc7f064 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Sun, 1 Jan 2023 14:19:15 +1300 Subject: [PATCH] Move the theme object to be inline for mock-providers This way we get better auto completion --- mock-providers.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/mock-providers.tsx b/mock-providers.tsx index ea5c3b6..3b95ba4 100644 --- a/mock-providers.tsx +++ b/mock-providers.tsx @@ -8,22 +8,21 @@ import { import MaterialIcon from 'react-native-vector-icons/MaterialIcons' import {ThemeContext} from './use-theme' -export const theme = { - theme: 'system', - setTheme: jest.fn(), - lightColor: DefaultTheme.colors.primary, - darkColor: DarkTheme.colors.primary, - setLightColor: jest.fn(), - setDarkColor: jest.fn(), -} - export const MockProviders = ({ children, }: { children: JSX.Element | JSX.Element[] }) => ( }}> - + {children}