Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2020-09-03 20:41:39 +08:00
15 changed files with 66 additions and 29 deletions
+3 -12
View File
@@ -126,10 +126,7 @@ test('use stepper', async () => {
});
await submitForm(wrapper);
expect(onFailed).toHaveBeenCalledWith({
errors: [{ message: 'foo', name: 'A' }],
values: { A: 0 },
});
expect(onFailed).toBeCalledTimes(0);
wrapper.setData({ value: 1 });
@@ -146,10 +143,7 @@ test('use rate', async () => {
});
await submitForm(wrapper);
expect(onFailed).toHaveBeenCalledWith({
errors: [{ message: 'foo', name: 'A' }],
values: { A: 0 },
});
expect(onFailed).toBeCalledTimes(0);
wrapper.setData({ value: 1 });
@@ -166,10 +160,7 @@ test('use slider', async () => {
});
await submitForm(wrapper);
expect(onFailed).toHaveBeenCalledWith({
errors: [{ message: 'foo', name: 'A' }],
values: { A: 0 },
});
expect(onFailed).toBeCalledTimes(0);
wrapper.setData({ value: 50 });