Skip to content

Commit 4f7136e

Browse files
committed
Minor tweak to adjust ReactDOM-test for #8356
**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
1 parent 0001036 commit 4f7136e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderers/dom/client/__tests__/ReactDOM-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ describe('ReactDOM', () => {
109109
expect(dog.className).toBe('bigdog');
110110
});
111111

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

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

0 commit comments

Comments
 (0)