Skip to content

fix: fix uploadType reset bug #435

fix: fix uploadType reset bug

fix: fix uploadType reset bug #435

GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Nov 15, 2023 in 0s

Test suite run failed

Failed tests: 1/943. Failed suites: 1/278.

Details

Created failed tests' annotations. To disable them, see documentation.

  ● Order/Create › should create order when user input all require fields

    expect(jest.fn()).toBeCalledTimes(expected)

    Expected number of calls: 1
    Received number of calls: 2

      305 |     fireEvent.click(screen.getByText('common.resetAndClose'));
      306 |
    > 307 |     expect(emitSpy).toBeCalledTimes(1);
          |                     ^
      308 |     expect(emitSpy).toBeCalledWith(EmitterKey.Reset_Create_Order_Form);
      309 |     expect(getBySelector('.ant-modal-wrap')).toHaveStyle('display: none');
      310 |     expect(screen.getByLabelText('order.baseInfo.name')).toHaveValue('');

      at Object.<anonymous> (src/page/Order/Create/index.test.tsx:307:21)

Annotations

Check failure on line 224 in src/page/Order/Create/index.test.tsx

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Order/Create > should create order when user input all require fields

Error: expect(jest.fn()).toBeCalledTimes(expected)

Expected number of calls: 1
Received number of calls: 2
    at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/Create/index.test.tsx:307:21)