diff options
Diffstat (limited to 'packages/astro/test/react-component.test.js')
-rw-r--r-- | packages/astro/test/react-component.test.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/astro/test/react-component.test.js b/packages/astro/test/react-component.test.js index ee984e756..749fc0c16 100644 --- a/packages/astro/test/react-component.test.js +++ b/packages/astro/test/react-component.test.js @@ -42,7 +42,11 @@ describe('React Components', () => { expect($('#pure')).to.have.lengthOf(1); // test 8: Check number of islands - expect($('astro-island')).to.have.lengthOf(5); + expect($('astro-root[uid]')).to.have.lengthOf(5); + + // test 9: Check island deduplication + const uniqueRootUIDs = new Set($('astro-root').map((i, el) => $(el).attr('uid'))); + expect(uniqueRootUIDs.size).to.equal(4); }); it('Can load Vue', async () => { |