Skip to content

Commit

Permalink
Do not use expectDev in ReactDOMFactories tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Jan 27, 2017
1 parent 49dc0fb commit 8f6d3e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/addons/__tests__/ReactDOMFactories-test.js
Expand Up @@ -19,7 +19,7 @@ describe('ReactDOMFactories', () => {
spyOn(console, 'error');
var element = div();
expect(element.type).toBe('div');
expectDev(console.error).not.toHaveBeenCalled();
expect(console.error).not.toHaveBeenCalled();
});

it('warns once when accessing React.DOM methods', () => {
Expand All @@ -31,8 +31,8 @@ describe('ReactDOMFactories', () => {
expect(a.type).toBe('a');
expect(p.type).toBe('p');

expectDev(console.error).toHaveBeenCalledTimes(1);
expectDev(console.error.calls.first().args[0]).toContain(
expect(console.error).toHaveBeenCalledTimes(1);
expect(console.error.calls.first().args[0]).toContain(
'Warning: Accessing factories like React.DOM.a has been deprecated'
);
});
Expand Down

0 comments on commit 8f6d3e8

Please sign in to comment.