yun-ui
Version:
Mobile UI Components Library for Vue.js by yunzhijia.
21 lines (18 loc) • 551 B
JavaScript
import Vue from 'vue'
import Loading from '../../../packages/loading'
describe('Loading.vue', () => {
it('should render Loading', () => {
const vm = new Vue({
el: document.createElement('div'),
render (h) {
return h(Loading, {
props: {
show: true,
content: '加载中'
}
})
}
})
expect(vm.$el.textContent.trim()).to.equal('加载中')
})
})