Skip to content

Commit 1dd11d2

Browse files
Laurie BarthLaurie Barth
authored andcommitted
upddate tests
1 parent 2a3a9ed commit 1dd11d2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/gatsby-plugin-theme-ui/test/__mocks__/gatsby.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
useStaticQuery: jest.fn(() => ({
88
themeUiConfig: {
99
preset: {},
10+
prismPreset: {},
1011
},
1112
})),
1213
}

packages/gatsby-plugin-theme-ui/test/provider.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ test('renders with theme context', () => {
2323
const root = render(wrapRootElement({ element: <Consumer /> }, {}))
2424
expect(context.theme).toEqual({
2525
colors: {},
26+
styles: {
27+
pre: {},
28+
},
2629
})
2730
})
2831

@@ -32,8 +35,8 @@ test.skip('renders with ColorMode component', () => {
3235
modes: {
3336
dark: {
3437
primary: 'magenta',
35-
}
36-
}
38+
},
39+
},
3740
}
3841
const root = renderer.create(
3942
wrapRootElement(

0 commit comments

Comments
 (0)