Skip to content

Commit

Permalink
Merge pull request #536 from baiyaaaaa/test/component/layout
Browse files Browse the repository at this point in the history
col test improve
  • Loading branch information
Leopoldthecoder committed Oct 20, 2016
2 parents 39d90d0 + 8e68e82 commit ab693a2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/unit/specs/col.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});

0 comments on commit ab693a2

Please sign in to comment.