import { createVue, destroyVM } from '../util'; describe('Breadcrumb.vue', () => { let vm; afterEach(() => { destroyVM(vm); }); it('create', done => { vm = createVue(` Home4 Components Breadcrumb `); expect(vm.$el.querySelectorAll('.ivu-breadcrumb-item-link').length).to.equal(3); vm.$nextTick(_ => { // console.log(vm.$el.querySelector('.ivu-breadcrumb-item-separator').innerHTML); expect(vm.$el.querySelector('.ivu-breadcrumb-item-separator').innerHTML).to.equal('=>'); done(); }); }); });