0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-24 22:46:02 -05:00

[ci] format

This commit is contained in:
lilnasy 2023-11-01 13:56:36 +00:00 committed by astrobot-houston
parent 2da33b7a13
commit f6b53a2e69
2 changed files with 3 additions and 3 deletions

View file

@ -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);
};
}

View file

@ -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);