import { createVue, destroyVM } from '../util';
describe('Divider', () => {
let vm;
afterEach(() => {
destroyVM(vm);
});
it('content', () => {
vm = createVue({
template: `
我是一条完美分割线!
`
});
expect(vm.$el).to.property('textContent').to.include('我是一条完美分割线!');
});
it('direction', () => {
vm = createVue({
template: `
我是一条完美分割线!
`
});
expect(vm.$el.className).to.include('el-divider--vertical');
});
it('apply class to divider', () => {
vm = createVue({
template: `
我是一条完美分割线!
`
});
expect(vm.$el.className).to.include('my-divider');
});
});