Skip to content

Commit

Permalink
test: add another assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
MoustaphaDev committed Jan 11, 2024
1 parent c845251 commit 70c1d77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/astro/test/astro-slots.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ describe('Slots', () => {
const $ = cheerio.load(html);
expect($('#post-1')).to.have.lengthOf(1);
expect($('#post-1').text().trim()).to.equal('');
expect($('#post-1').html().trim()).to.equal(`<div class="card"></div>`);

expect($('#post-2')).to.have.lengthOf(1);
expect($('#post-2').text().trim()).to.equal('Post 2 Post 2 content');
Expand Down

0 comments on commit 70c1d77

Please sign in to comment.