diff --git a/examples/justify-content/index.ts b/examples/justify-content/index.ts index 5de35c38..ca4fce19 100644 --- a/examples/justify-content/index.ts +++ b/examples/justify-content/index.ts @@ -1 +1 @@ -import './justify-content'; +import './justify-content.js'; diff --git a/test/flex-justify-content.tsx b/test/flex-justify-content.tsx index bd0e5091..3227781c 100644 --- a/test/flex-justify-content.tsx +++ b/test/flex-justify-content.tsx @@ -57,6 +57,17 @@ test('row - align two text nodes on the edges', t => { t.is(output, 'A B'); }); +test('row - space evenly two text nodes', t => { + const output = renderToString( + + A + B + , + ); + + t.is(output, ' A B'); +}); + // Yoga has a bug, where first child in a container with space-around doesn't have // the correct X coordinate and measure function is used on that child node test.failing('row - align two text nodes with equal space around them', t => {