Skip to content

Commit ad16f81

Browse files
committed
Improve the coverage of unit test
1 parent b22b54e commit ad16f81

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
@@ -45,6 +45,7 @@ describe('InfiniteLoading.vue', () => {
4545
});
4646

4747
it('should render a basic template', (done) => {
48+
vm.isDivScroll = false;
4849
setTimeout(() => {
4950
vm.$mount().$appendTo('body');
5051
expect(vm.$el.querySelector('.loading-default')).to.be.ok;
@@ -138,7 +139,6 @@ describe('InfiniteLoading.vue', () => {
138139

139140
it('should display the custom spinner if customize it with slot', () => {
140141
vm.isCustomSpinner = true;
141-
vm.isDivScroll = false;
142142
vm.distance = undefined;
143143

144144
vm.$mount().$appendTo('body');

0 commit comments

Comments
 (0)