Skip to content

Commit 72501f4

Browse files
committed
Improve the coverage of unit test
1 parent ec92b78 commit 72501f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/specs/InfiniteLoading.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ describe('InfiniteLoading.vue', () => {
8282
});
8383

8484
it('should render a basic template', (done) => {
85+
vm.isDivScroll = false;
8586
setTimeout(() => {
8687
vm.$mount('#app');
8788
expect(vm.$el.querySelector('.loading-default')).to.be.ok;
@@ -175,7 +176,6 @@ describe('InfiniteLoading.vue', () => {
175176

176177
it('should display the custom spinner if customize it with slot', () => {
177178
vm.isCustomSpinner = true;
178-
vm.isDivScroll = false;
179179
delete vm.distance;
180180
vm.$mount('#app');
181181

0 commit comments

Comments
 (0)