Skip to content

Commit

Permalink
mockImpl -> mockImplementation
Browse files Browse the repository at this point in the history
D4329549
  • Loading branch information
sophiebits committed Dec 14, 2016
1 parent ba8f24b commit ac24197
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,11 @@ describe('ReactDOMComponent', () => {
var node = container.firstChild;
var nodeSetAttribute = node.setAttribute;
node.setAttribute = jest.fn();
node.setAttribute.mockImpl(nodeSetAttribute);
node.setAttribute.mockImplementation(nodeSetAttribute);

var nodeRemoveAttribute = node.removeAttribute;
node.removeAttribute = jest.fn();
node.removeAttribute.mockImpl(nodeRemoveAttribute);
node.removeAttribute.mockImplementation(nodeRemoveAttribute);

ReactDOM.render(<div id="" />, container);
expect(node.setAttribute.mock.calls.length).toBe(0);
Expand Down
2 changes: 1 addition & 1 deletion src/test/__tests__/ReactTestUtils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ describe('ReactTestUtils', () => {
describe('Simulate', () => {
it('should set the type of the event', () => {
let event;
const stub = jest.genMockFn().mockImpl((e) => {
const stub = jest.genMockFn().mockImplementation((e) => {
e.persist();
event = e;
});
Expand Down

0 comments on commit ac24197

Please sign in to comment.