test: should not mix async、done (#9294)
This commit is contained in:
@@ -231,7 +231,7 @@ test('change event', async () => {
|
|||||||
expect(onChange).toHaveBeenCalledTimes(1);
|
expect(onChange).toHaveBeenCalledTimes(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('toggle method', async (done) => {
|
test('toggle method', (done) => {
|
||||||
const wrapper = mount({
|
const wrapper = mount({
|
||||||
setup() {
|
setup() {
|
||||||
const item = ref();
|
const item = ref();
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ test('disabled', async () => {
|
|||||||
expect(afterRead).toHaveBeenCalledTimes(0);
|
expect(afterRead).toHaveBeenCalledTimes(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('result-type as text', async (done) => {
|
test('result-type as text', (done) => {
|
||||||
const wrapper = mount(Uploader, {
|
const wrapper = mount(Uploader, {
|
||||||
props: {
|
props: {
|
||||||
resultType: 'text',
|
resultType: 'text',
|
||||||
@@ -555,7 +555,7 @@ test('show-upload prop', async () => {
|
|||||||
expect(wrapper.find('.van-uploader__upload').exists()).toBeFalsy();
|
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, {
|
const wrapper = mount(Uploader, {
|
||||||
props: {
|
props: {
|
||||||
modelValue: [],
|
modelValue: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user