From 8e68e82e25ba9d6c49b1548d84308489ebd0cc71 Mon Sep 17 00:00:00 2001 From: baiyaaaaa Date: Thu, 20 Oct 2016 14:27:07 +0800 Subject: [PATCH] col test improve --- test/unit/specs/col.spec.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/unit/specs/col.spec.js b/test/unit/specs/col.spec.js index 4bca7142b..891aaa6fa 100644 --- a/test/unit/specs/col.spec.js +++ b/test/unit/specs/col.spec.js @@ -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: ` + + + + + ` + }, true); + let colElm = vm.$refs.col.$el; + expect(colElm.style.paddingLeft === '10px').to.be.true; + expect(colElm.style.paddingRight === '10px').to.be.true; + }); });