mirror of
https://github.com/withastro/astro.git
synced 2025-02-24 22:46:02 -05:00
[ci] format
This commit is contained in:
parent
2da33b7a13
commit
f6b53a2e69
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue