From 7fb4f3dcd6a90894c0700413ab6dacd7d01592e4 Mon Sep 17 00:00:00 2001 From: lilnasy Date: Wed, 1 Nov 2023 13:56:36 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/runtime/server/render/astro/instance.ts | 2 +- packages/astro/test/astro-slots.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/runtime/server/render/astro/instance.ts b/packages/astro/src/runtime/server/render/astro/instance.ts index 083a8242cc2cc..389ae71ba2453 100644 --- a/packages/astro/src/runtime/server/render/astro/instance.ts +++ b/packages/astro/src/runtime/server/render/astro/instance.ts @@ -40,7 +40,7 @@ export class AstroComponentInstance { didRender = true; return value; } - // render afresh for the advanced use-case where the same slot is rendered multiple times + // render afresh for the advanced use-case where the same slot is rendered multiple times return slots[name](result); }; } diff --git a/packages/astro/test/astro-slots.test.js b/packages/astro/test/astro-slots.test.js index 28f94969036a1..34f1d82255ccd 100644 --- a/packages/astro/test/astro-slots.test.js +++ b/packages/astro/test/astro-slots.test.js @@ -152,11 +152,11 @@ describe('Slots', () => { { const html = await fixture.readFile('/rendered-multiple-times/index.html'); const $ = cheerio.load(html); - + const elements = $('div'); expect(elements).to.have.lengthOf(10); - const [ first, second, third ] = elements; + const [first, second, third] = elements; expect(first.children[0].data).to.not.equal(second.children[0].data); expect(second.children[0].data).to.not.equal(third.children[0].data);