Commit c3f14b02 authored by baiyaaaaa's avatar baiyaaaaa

col test

parent da8099ec
import { createVue } from '../util';
describe('Col', () => {
it('create', () => {
const vm = createVue({
template: `
<el-col :span="12">
</el-col>
`
}, true);
let colElm = vm.$el;
expect(colElm.classList.contains('el-col')).to.be.true;
});
it('span', () => {
const vm = createVue({
template: `
<el-col :span="12">
</el-col>
`
}, true);
let colElm = vm.$el;
expect(colElm.classList.contains('el-col-12')).to.be.true;
});
it('pull', () => {
const vm = createVue({
template: `
<el-col :span="12" :pull="3">
</el-col>
`
}, true);
let colElm = vm.$el;
expect(colElm.classList.contains('el-col-pull-3')).to.be.true;
});
it('push', () => {
const vm = createVue({
template: `
<el-col :span="12" :push="3">
</el-col>
`
}, true);
let colElm = vm.$el;
expect(colElm.classList.contains('el-col-push-3')).to.be.true;
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment