From 5a0bb6d50e2eca1104d4d6bd8c7892c913ea3c60 Mon Sep 17 00:00:00 2001 From: zkwolf Date: Mon, 29 Jun 2020 09:54:03 +0800 Subject: [PATCH] test: update grid (#2502) --- .../__snapshots__/index.test.js.snap | 20 +++++++++++++++---- components/grid/__tests__/index.test.js | 2 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/components/grid/__tests__/__snapshots__/index.test.js.snap b/components/grid/__tests__/__snapshots__/index.test.js.snap index d0976028f..dd1aea276 100644 --- a/components/grid/__tests__/__snapshots__/index.test.js.snap +++ b/components/grid/__tests__/__snapshots__/index.test.js.snap @@ -3,12 +3,24 @@ exports[`Grid renders wrapped Col correctly 1`] = `
-
+
+ +
+
+
+
-
`; -exports[`Grid should render Col 1`] = `
`; +exports[`Grid should render Col 1`] = ` +
+ +
+`; -exports[`Grid should render Row 1`] = `
`; +exports[`Grid should render Row 1`] = ` +
+ +
+`; diff --git a/components/grid/__tests__/index.test.js b/components/grid/__tests__/index.test.js index f32a8f832..bb50a891f 100644 --- a/components/grid/__tests__/index.test.js +++ b/components/grid/__tests__/index.test.js @@ -7,7 +7,7 @@ describe('Grid', () => { mountTest(Col); it('should render Col', () => { const wrapper = mount(Col, { - propsData: { + props: { span: 2, }, });