Skip to content

Commit

Permalink
Revert "Fix test"
Browse files Browse the repository at this point in the history
This reverts commit f9ec6e2.
  • Loading branch information
ascorbic committed Nov 14, 2024
1 parent 4182df7 commit 252f113
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/astro/test/content-collections-render.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ describe('Content Collections - render()', () => {
assert.equal($('ul li').length, 3);

// Includes styles
assert.equal($('head > style').length, 3);
assert.equal($('head > style').length, 2);
assert.ok($('head > style').text().includes("font-family: 'Comic Sans MS'"));
});

Expand Down
6 changes: 3 additions & 3 deletions packages/integrations/markdoc/test/propagated-assets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ describe('Markdoc - propagated assets', () => {
let styleContents;
if (mode === 'dev') {
const styles = stylesDocument.querySelectorAll('style');
assert.equal(styles.length, 3);
styleContents = styles[2].textContent;
assert.equal(styles.length, 2);
styleContents = styles[1].textContent;
} else {
const links = stylesDocument.querySelectorAll('link[rel="stylesheet"]');
assert.equal(links.length, 2);
Expand All @@ -58,7 +58,7 @@ describe('Markdoc - propagated assets', () => {
it('[fails] Does not bleed styles to other page', async () => {
if (mode === 'dev') {
const styles = scriptsDocument.querySelectorAll('style');
assert.equal(styles.length, 2);
assert.equal(styles.length, 1);
} else {
const links = scriptsDocument.querySelectorAll('link[rel="stylesheet"]');
assert.equal(links.length, 1);
Expand Down

0 comments on commit 252f113

Please sign in to comment.