Skip to content

Commit cf3808e

Browse files
committed
convert test/EditorProvider
1 parent 8d5564d commit cf3808e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/editor/test/EditorProvider.js renamed to packages/editor/test/EditorProvider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test('adds setTheme method to context', () => {
3636
let context
3737
const GetContext = () => {
3838
context = useThemeUI()
39-
return false
39+
return null
4040
}
4141
const tree = render(
4242
<ThemeProvider theme={theme}>
@@ -52,7 +52,7 @@ test('setTheme updates theme context', () => {
5252
let context
5353
const GetContext = () => {
5454
context = useThemeUI()
55-
return false
55+
return null
5656
}
5757
act(() => {
5858
const tree = render(
@@ -65,7 +65,7 @@ test('setTheme updates theme context', () => {
6565
context.setTheme({
6666
colors: {
6767
text: 'tomato',
68-
}
68+
},
6969
})
7070
})
7171
expect(context.theme.colors.text).toBe('tomato')

0 commit comments

Comments
 (0)