fix(client): give useful error in solutionform (#40225)

This commit is contained in:
Shaun Hamilton
2021-02-01 13:34:04 +00:00
committed by GitHub
parent 5539dbf086
commit ab83d698f9
11 changed files with 114 additions and 40 deletions

View File

@@ -79,12 +79,12 @@ test('should submit', () => {
fireEvent.click(button);
expect(submit).toHaveBeenCalledTimes(1);
expect(submit.mock.calls[0][0]).toEqual({ website: websiteValue });
expect(submit.mock.calls[0][0].values).toEqual({ website: websiteValue });
fireEvent.change(websiteInput, { target: { value: `${websiteValue}///` } });
expect(websiteInput).toHaveValue(`${websiteValue}///`);
fireEvent.click(button);
expect(submit).toHaveBeenCalledTimes(2);
expect(submit.mock.calls[1][0]).toEqual({ website: websiteValue });
expect(submit.mock.calls[1][0].values).toEqual({ website: websiteValue });
});