📌  相关文章
📜  开玩笑酶测试接收提交 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:22.695000             🧑  作者: Mango

代码示例1
// Unit test
  describe('SomeComponent' () => {
  it('validates model on button click', () => {
      const handleSubmit = jest.fn();
      const wrapper = mount(
          
      );
      const instance = wrapper.instance();
      const submitBtn = app.find('#sign-in')
      submitBtn.simulate('click')
      expect(handleSubmit).toHaveBeenCalled();
    });
  }