mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-01 03:38:30 +08:00
col test
This commit is contained in:
parent
da8099ecf6
commit
c3f14b02b1
44
test/unit/specs/col.spec.js
Normal file
44
test/unit/specs/col.spec.js
Normal file
@ -0,0 +1,44 @@
|
||||
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;
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user