File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ describe('InfiniteLoading.vue', () => {
104
104
105
105
it ( 'should display no results prompt' , ( done ) => {
106
106
vm . onInfinite = function test ( ) {
107
- this . $broadcast ( '$InfiniteLoading:noResults ' ) ;
107
+ this . $broadcast ( '$InfiniteLoading:complete ' ) ;
108
108
Vue . nextTick ( ( ) => {
109
109
expect ( isShow ( vm . $el . querySelectorAll ( '.infinite-status-prompt' ) [ 0 ] ) ) . to . be . true ;
110
110
done ( ) ;
@@ -116,7 +116,8 @@ describe('InfiniteLoading.vue', () => {
116
116
117
117
it ( 'should display no more data prompt' , ( done ) => {
118
118
vm . onInfinite = function test ( ) {
119
- this . $broadcast ( '$InfiniteLoading:noMore' ) ;
119
+ this . $broadcast ( '$InfiniteLoading:loaded' ) ;
120
+ this . $broadcast ( '$InfiniteLoading:complete' ) ;
120
121
Vue . nextTick ( ( ) => {
121
122
expect ( isShow ( vm . $el . querySelectorAll ( '.infinite-status-prompt' ) [ 1 ] ) ) . to . be . true ;
122
123
done ( ) ;
You can’t perform that action at this time.
0 commit comments