Skip to content

Commit d5180b5

Browse files
committed
Error message changed in React 15.
1 parent 9e9c725 commit d5180b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/components/Provider.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ describe('React', () => {
3636
expect(() => TestUtils.renderIntoDocument(
3737
<Provider store={store}>
3838
</Provider>
39-
)).toThrow(/exactly one child/)
39+
)).toThrow(/a single React element child/)
4040

4141
expect(() => TestUtils.renderIntoDocument(
4242
<Provider store={store}>
4343
<div />
4444
<div />
4545
</Provider>
46-
)).toThrow(/exactly one child/)
46+
)).toThrow(/a single React element child/)
4747
} finally {
4848
Provider.propTypes = propTypes
4949
}

0 commit comments

Comments
 (0)