Skip to content

Commit

Permalink
Improve naming in astro-slots.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed May 1, 2024
1 parent e98601f commit 36be8dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/astro/test/astro-slots.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ describe('Slots', () => {
it('Arguments can be passed to named slots with Astro.slots.render()', async () => {
const html = await fixture.readFile('/slotted-named-functions/index.html');
const $ = cheerio.load(html);
const before = $('div#before');
const [beforeDiv] = before.children('div');
assert.deepEqual(beforeDiv.firstChild.data, 'Test Content BEFORE');
const after = $('div#after');
const [afterDiv] = after.children('div');
assert.deepEqual(afterDiv.firstChild.data, 'Test Content AFTER');
const beforeDiv = $('div#before');
const [beforeChildren] = beforeDiv.children('div');
assert.deepEqual(beforeChildren.firstChild.data, 'Test Content BEFORE');
const afterDiv = $('div#after');
const [afterChildren] = afterDiv.children('div');
assert.deepEqual(afterChildren.firstChild.data, 'Test Content AFTER');
});
});

0 comments on commit 36be8dc

Please sign in to comment.