|
|
@@ -76,7 +76,6 @@ test('should render initpage', async () => {
|
|
|
});
|
|
|
|
|
|
await nextTick();
|
|
|
- await nextTick();
|
|
|
|
|
|
const swiperItem = wrapper.findAll('.nut-swiper-inner')[0].element as HTMLElement;
|
|
|
|
|
|
@@ -114,7 +113,6 @@ test('should render direction', async () => {
|
|
|
});
|
|
|
|
|
|
await nextTick();
|
|
|
- await nextTick();
|
|
|
|
|
|
const swiperItem = wrapper.findAll('.nut-swiper-inner')[0].element as HTMLElement;
|
|
|
|
|
|
@@ -152,7 +150,6 @@ test('should render pagination', async () => {
|
|
|
});
|
|
|
|
|
|
await nextTick();
|
|
|
- await nextTick();
|
|
|
|
|
|
const swiperPagination = wrapper.find('.nut-swiper-pagination');
|
|
|
expect(swiperPagination.exists()).toBe(true);
|
|
|
@@ -199,7 +196,6 @@ test('should render loop and auto-play', async () => {
|
|
|
});
|
|
|
|
|
|
await nextTick();
|
|
|
- await nextTick();
|
|
|
|
|
|
await sleep(200);
|
|
|
const swiperItem = wrapper.findAll('.nut-swiper-inner')[0].element as HTMLElement;
|
|
|
@@ -261,7 +257,6 @@ test('should not allow to drag when loop is false', async () => {
|
|
|
});
|
|
|
|
|
|
await nextTick();
|
|
|
- await nextTick();
|
|
|
|
|
|
await sleep(2000);
|
|
|
expect(wrapper.vm.page).toBe(3);
|