Skip to content

Commit 1aaeae3

Browse files
committed
Fix ThemeProvider test
1 parent 01f3a11 commit 1aaeae3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/components/ThemeProvider.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ describe('ThemeProvider', () => {
3131
expect(() => TestUtils.renderIntoDocument(
3232
<ThemeProvider theme={theme}>
3333
</ThemeProvider>
34-
)).toThrow(/exactly one child/)
34+
)).toThrow(/expected to receive a single React element child/)
3535

3636
expect(() => TestUtils.renderIntoDocument(
3737
<ThemeProvider theme={theme}>
3838
<div />
3939
<div />
4040
</ThemeProvider>
41-
)).toThrow(/exactly one child/)
41+
)).toThrow(/expected to receive a single React element child/)
4242
} finally {
4343
ThemeProvider.propTypes = propTypes
4444
}

0 commit comments

Comments
 (0)