Skip to content

Commit

Permalink
correct minor mistake in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy authored Apr 27, 2023
1 parent ac8710a commit 2d8dad1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/astro/test/content-collections-render.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('Content Collections - render()', () => {

$('style').each((_, styleEl) => {
const textContent = styleEl.children[0].data;
expect(set).to.not.contain(href);
expect(set).to.not.contain(textContent);
set.add(textContent);
});
});
Expand Down Expand Up @@ -146,15 +146,13 @@ describe('Content Collections - render()', () => {

$('link[rel=stylesheet]').each((_, linkEl) => {
const href = linkEl.attribs.href;
const isDuplicate = set.has(href);
expect(isDuplicate).to.equal(false);
expect(set).to.not.contain(href);
set.add(href);
});

$('style').each((_, styleEl) => {
const textContent = styleEl.children[0].data;
const isDuplicate = set.has(textContent);
expect(isDuplicate).to.equal(false);
expect(set).to.not.contain(textContent);
set.add(textContent);
});
});
Expand Down

0 comments on commit 2d8dad1

Please sign in to comment.