From 6ac84d1d327c59aed5c7960f1c3e3ecd5ec92bb7 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Tue, 1 Nov 2022 18:30:23 +1300 Subject: [PATCH] Fix mock-providers.tsx --- mock-providers.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/mock-providers.tsx b/mock-providers.tsx index 386bc92..ea5f90c 100644 --- a/mock-providers.tsx +++ b/mock-providers.tsx @@ -1,13 +1,15 @@ import {NavigationContainer} from '@react-navigation/native' import React from 'react' -import {Provider as PaperProvider} from 'react-native-paper' -import MassiveSnack from './MassiveSnack' -import {defaultSettings, SettingsContext} from './use-settings' +import {DefaultTheme, Provider as PaperProvider} from 'react-native-paper' import MaterialIcon from 'react-native-vector-icons/MaterialIcons' +import {ThemeContext} from './use-theme' -export const setColor = jest.fn() -const settings = defaultSettings -export const setSettings = jest.fn() +export const theme = { + theme: 'system', + setTheme: jest.fn(), + color: DefaultTheme.colors.primary, + setColor: jest.fn(), +} export const MockProviders = ({ children, @@ -15,10 +17,8 @@ export const MockProviders = ({ children: JSX.Element | JSX.Element[] }) => ( }}> - - - {children} - - + + {children} + )