mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(CountDown): test cases may fail
This commit is contained in:
parent
2205285b38
commit
37fca563d0
@ -9,7 +9,7 @@ test('macro task finish event', async () => {
|
||||
});
|
||||
|
||||
expect(wrapper.emitted('finish')).toBeFalsy();
|
||||
await later(20);
|
||||
await later(50);
|
||||
expect(wrapper.emitted('finish')).toBeTruthy();
|
||||
});
|
||||
|
||||
@ -22,7 +22,7 @@ test('micro task finish event', async () => {
|
||||
});
|
||||
|
||||
expect(wrapper.emitted('finish')).toBeFalsy();
|
||||
await later(20);
|
||||
await later(50);
|
||||
expect(wrapper.emitted('finish')).toBeTruthy();
|
||||
});
|
||||
|
||||
@ -35,7 +35,7 @@ test('macro task re-render', async () => {
|
||||
});
|
||||
|
||||
const prevSnapShot = wrapper.html();
|
||||
await later(20);
|
||||
await later(50);
|
||||
const laterSnapShot = wrapper.html();
|
||||
|
||||
expect(prevSnapShot !== laterSnapShot).toBeTruthy();
|
||||
@ -51,7 +51,7 @@ test('micro task re-render', async () => {
|
||||
});
|
||||
|
||||
const prevSnapShot = wrapper.html();
|
||||
await later(20);
|
||||
await later(50);
|
||||
const laterSnapShot = wrapper.html();
|
||||
|
||||
expect(prevSnapShot !== laterSnapShot).toBeTruthy();
|
||||
@ -66,7 +66,7 @@ test('disable auto-start prop', async () => {
|
||||
}
|
||||
});
|
||||
|
||||
await later(20);
|
||||
await later(50);
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
@ -103,7 +103,7 @@ test('pause method', async () => {
|
||||
|
||||
const prevSnapShot = wrapper.html();
|
||||
wrapper.vm.pause();
|
||||
await later(20);
|
||||
await later(50);
|
||||
const laterShapShot = wrapper.html();
|
||||
|
||||
expect(prevSnapShot === laterShapShot).toBeTruthy();
|
||||
@ -119,7 +119,7 @@ test('reset method', async () => {
|
||||
});
|
||||
|
||||
const prevSnapShot = wrapper.html();
|
||||
await later(20);
|
||||
await later(50);
|
||||
wrapper.vm.reset();
|
||||
const laterShapShot = wrapper.html();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user