From 069b541030d35e761f9f1053c55ad2cd645a1894 Mon Sep 17 00:00:00 2001 From: Gustavo Gard Date: Thu, 31 May 2018 20:58:10 -0300 Subject: [PATCH] Feature/array empty (#9) * remove data prop required * add empty list test --- .../GridList/__snapshots__/test.js.snap | 26 +++++++++++++++++++ src/components/GridList/index.js | 3 ++- src/components/GridList/test.js | 10 +++++++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/src/components/GridList/__snapshots__/test.js.snap b/src/components/GridList/__snapshots__/test.js.snap index 9a78e2b..737fbbd 100644 --- a/src/components/GridList/__snapshots__/test.js.snap +++ b/src/components/GridList/__snapshots__/test.js.snap @@ -99,6 +99,32 @@ exports[`grid list renders correctly 1`] = ` /> `; +exports[`grid list renders empty list 1`] = ` + +`; + exports[`grid list renders showAnimation 1`] = ` { ); expect(wrapper).toMatchSnapshot(); }); + + it('renders empty list', () => { + const wrapper = shallow( + } + />, + ); + expect(wrapper).toMatchSnapshot(); + }); it('renders showSeparator', () => { const wrapper = shallow(