Skip to content

Commit e05eef6

Browse files
committed
Improve test coverage for the continue fill up container
1 parent 9e81102 commit e05eef6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/unit/specs/InfiniteLoading.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ describe('InfiniteLoading.vue', () => {
129129
Vue.nextTick(() => {
130130
this.$broadcast('$InfiniteLoading:loaded');
131131
this.$broadcast('$InfiniteLoading:complete');
132+
this.$broadcast('$InfiniteLoading:loaded'); // test for whether trigger again after complete
132133
Vue.nextTick(() => {
133134
expect(isShow(vm.$el.querySelectorAll('.infinite-status-prompt')[1])).to.be.true;
134135
done();

0 commit comments

Comments
 (0)