Skip to content

Commit 48d15ba

Browse files
committed
Modify the unit test to adapt to new template of prompts
1 parent 461f0ae commit 48d15ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/specs/InfiniteLoading.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,23 +102,23 @@ describe('InfiniteLoading.vue', () => {
102102
vm.$mount().$appendTo('body');
103103
});
104104

105-
it('should display no results tips', (done) => {
105+
it('should display no results prompt', (done) => {
106106
vm.onInfinite = function test() {
107107
this.$broadcast('$InfiniteLoading:noResults');
108108
Vue.nextTick(() => {
109-
expect(isShow(vm.$el.querySelectorAll('.infinite-status-tips')[0])).to.be.true;
109+
expect(isShow(vm.$el.querySelectorAll('.infinite-status-prompt')[0])).to.be.true;
110110
done();
111111
});
112112
}.bind(vm);
113113

114114
vm.$mount().$appendTo('body');
115115
});
116116

117-
it('should display no more data tips', (done) => {
117+
it('should display no more data prompt', (done) => {
118118
vm.onInfinite = function test() {
119119
this.$broadcast('$InfiniteLoading:noMore');
120120
Vue.nextTick(() => {
121-
expect(isShow(vm.$el.querySelectorAll('.infinite-status-tips')[1])).to.be.true;
121+
expect(isShow(vm.$el.querySelectorAll('.infinite-status-prompt')[1])).to.be.true;
122122
done();
123123
});
124124
}.bind(vm);

0 commit comments

Comments
 (0)