test: should not mix async、done (#9294)

This commit is contained in:
neverland
2021-08-20 10:20:43 +08:00
committed by GitHub
parent 816790a875
commit bf90bde736
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ test('change event', async () => {
expect(onChange).toHaveBeenCalledTimes(1);
});
test('toggle method', async (done) => {
test('toggle method', (done) => {
const wrapper = mount({
setup() {
const item = ref();
+2 -2
View File
@@ -51,7 +51,7 @@ test('disabled', async () => {
expect(afterRead).toHaveBeenCalledTimes(0);
});
test('result-type as text', async (done) => {
test('result-type as text', (done) => {
const wrapper = mount(Uploader, {
props: {
resultType: 'text',
@@ -555,7 +555,7 @@ test('show-upload prop', async () => {
expect(wrapper.find('.van-uploader__upload').exists()).toBeFalsy();
});
test('file message should be reactive', async (done) => {
test('file message should be reactive', (done) => {
const wrapper = mount(Uploader, {
props: {
modelValue: [],