summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar lilnasy <lilnasy@users.noreply.github.com> 2023-11-01 13:56:36 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-11-01 13:56:36 +0000
commitf6b53a2e69c8749872c2205ee2c8d61f39eb3388 (patch)
treee43dfe1bca3dcf4758545fdb7d8399a999166b8a
parent2da33b7a13cf964595f758e3e4a865fd97d0943e (diff)
downloadastro-f6b53a2e69c8749872c2205ee2c8d61f39eb3388.tar.gz
astro-f6b53a2e69c8749872c2205ee2c8d61f39eb3388.tar.zst
astro-f6b53a2e69c8749872c2205ee2c8d61f39eb3388.zip
[ci] format
Diffstat (limited to '')
-rw-r--r--packages/astro/src/runtime/server/render/astro/instance.ts2
-rw-r--r--packages/astro/test/astro-slots.test.js4
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 083a8242c..389ae71ba 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 28f949690..34f1d8225 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);