);      // assert that the stubbed function was called with the     // expected value     expect(onChange).toHaveBeenCalledWith(inputValue); }); ```  The test case above uses [`jest.fn()`](http://facebook.github.io/jest/docs/mock-function-api.html) to create a mock function. The mock is passed as the `