From 3e9ac12d225fe4430f4240559aaa3e9f349393b7 Mon Sep 17 00:00:00 2001 From: Jared Forsyth Date: Wed, 5 Aug 2015 21:57:22 -0700 Subject: [PATCH] add failing test --- src/__tests__/Layout-test.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/__tests__/Layout-test.js b/src/__tests__/Layout-test.js index 3eddd369..9ae524ba 100755 --- a/src/__tests__/Layout-test.js +++ b/src/__tests__/Layout-test.js @@ -2397,3 +2397,20 @@ describe('Layout alignContent', function() { testAlignContent('flex-end', 'flex-end'); testAlignContent('flex-end', 'stretch'); }); + +describe('nested flex', function() { + it('should stretch a nested child', function() { + testLayout( + {children: [ + {children: [{}]}, + {style: {width: 40}} + ]}, + {width: 40, height: 0, top: 0, left: 0, children: [ + {width: 40, height: 0, top: 0, left: 0, children: [ + {width: 40, height: 0, top: 0, left: 0} + ]}, + {width: 40, height: 0, top: 0, left: 0} + ]} + ); + }); +});