Commit 8e68e82e authored by baiyaaaaa's avatar baiyaaaaa

col test improve

parent c3f14b02
......@@ -41,4 +41,17 @@ describe('Col', () => {
let colElm = vm.$el;
expect(colElm.classList.contains('el-col-push-3')).to.be.true;
});
it('gutter', () => {
const vm = createVue({
template: `
<el-row :gutter="20">
<el-col :span="12" ref="col">
</el-col>
</el-row>
`
}, true);
let colElm = vm.$refs.col.$el;
expect(colElm.style.paddingLeft === '10px').to.be.true;
expect(colElm.style.paddingRight === '10px').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