Skip to content

Commit

Permalink
Minor tweak to adjust ReactDOM-test for #8356
Browse files Browse the repository at this point in the history
**what is the change?:**
Changed a test to look for the warning we added in https://github.com/facebook/react/pull/8356/files

**why make this change?:**
To update our tests for new behavior.

**test plan:**
`npm run test`

**issue:**
#9398
  • Loading branch information
flarnie committed May 9, 2017
1 parent 0001036 commit 4f7136e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderers/dom/client/__tests__/ReactDOM-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ describe('ReactDOM', () => {
expect(dog.className).toBe('bigdog');
});

it('allow React.DOM factories to be called without warnings', () => {
it('throws warning when React.DOM factories are called', () => {
spyOn(console, 'error');
var element = React.DOM.div();
expect(element.type).toBe('div');
expect(console.error.calls.count()).toBe(0);
expect(console.error.calls.count()).toBe(1);
});

it('throws in render() if the mount callback is not a function', () => {
Expand Down

0 comments on commit 4f7136e

Please sign in to comment.