summaryrefslogtreecommitdiff
path: root/packages/astro/test/react-component.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/test/react-component.test.js')
-rw-r--r--packages/astro/test/react-component.test.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/astro/test/react-component.test.js b/packages/astro/test/react-component.test.js
index 19bd42a43..8c22cc861 100644
--- a/packages/astro/test/react-component.test.js
+++ b/packages/astro/test/react-component.test.js
@@ -42,11 +42,16 @@ describe('React Components', () => {
expect($('#pure')).to.have.lengthOf(1);
// test 8: Check number of islands
- expect($('astro-island[uid]')).to.have.lengthOf(5);
+ expect($('astro-island[uid]')).to.have.lengthOf(7);
// test 9: Check island deduplication
const uniqueRootUIDs = new Set($('astro-island').map((i, el) => $(el).attr('uid')));
- expect(uniqueRootUIDs.size).to.equal(4);
+ expect(uniqueRootUIDs.size).to.equal(6);
+
+ // test 10: Should properly render children passed as props
+ const islandsWithChildren = $('.with-children');
+ expect(islandsWithChildren).to.have.lengthOf(2);
+ expect($(islandsWithChildren[0]).html()).to.equal($(islandsWithChildren[1]).html());
});
it('Can load Vue', async () => {