From d98c6a322b71e905608dda4bdebd5378c9c1825d Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 17 Aug 2023 14:28:01 -0500 Subject: [PATCH] chore: fix nested slot test --- packages/astro/test/astro-slots-nested.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/test/astro-slots-nested.test.js b/packages/astro/test/astro-slots-nested.test.js index 518a7e693..610f2f699 100644 --- a/packages/astro/test/astro-slots-nested.test.js +++ b/packages/astro/test/astro-slots-nested.test.js @@ -15,9 +15,9 @@ describe('Nested Slots', () => { const html = await fixture.readFile('/hidden-nested/index.html'); const $ = cheerio.load(html); expect($('script')).to.have.a.lengthOf(3, 'script rendered'); - // Astro Island scripts are [async], so this will only find other types of scripts - const scriptInTemplate = $($('template')[0].children[0]).find('script:not([async])'); - expect(scriptInTemplate).to.have.a.lengthOf(0, 'script defined outside of the inner template'); + // Astro Island scripts are, so this will only find other types of scripts + const scriptInTemplate = $($('template')[0].children[0]).find('script'); + expect(scriptInTemplate).to.have.a.lengthOf(1, 'script defined outside of the inner template'); }); it('Slots rendered via Astro.slots.render have the hydration script', async () => {