mockImpl -> mockImplementation

D4329549
This commit is contained in:
Ben Alpert
2016-12-14 14:21:51 -08:00
parent ba8f24ba99
commit ac241972bd
2 changed files with 3 additions and 3 deletions
@@ -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);
+1 -1
View File
@@ -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;
});