summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test
diff options
context:
space:
mode:
authorGravatar Darius <19603573+itsMapleLeaf@users.noreply.github.com> 2024-08-08 05:12:50 -0500
committerGravatar GitHub <noreply@github.com> 2024-08-08 12:12:50 +0200
commit72c7ae9901de927ae8d9d5be63cbaef4f976422c (patch)
tree6e41a6b07ad8830375ba7b0e4d924fd9449dc7ef /packages/integrations/markdoc/test
parent85de47cd982fd13c6286bcc0be384a220996ccbd (diff)
downloadastro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.gz
astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.zst
astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.zip
update formatter config (#11640)
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/markdoc/test')
-rw-r--r--packages/integrations/markdoc/test/content-collections.test.js4
-rw-r--r--packages/integrations/markdoc/test/image-assets.test.js4
-rw-r--r--packages/integrations/markdoc/test/render-html.test.js2
-rw-r--r--packages/integrations/markdoc/test/syntax-highlighting.test.js4
4 files changed, 7 insertions, 7 deletions
diff --git a/packages/integrations/markdoc/test/content-collections.test.js b/packages/integrations/markdoc/test/content-collections.test.js
index ef4ebfcea..5417f297d 100644
--- a/packages/integrations/markdoc/test/content-collections.test.js
+++ b/packages/integrations/markdoc/test/content-collections.test.js
@@ -47,7 +47,7 @@ describe('Markdoc - Content Collections', () => {
assert.deepEqual(
posts.sort().map((post) => formatPost(post)),
- [post1Entry, post2Entry, post3Entry]
+ [post1Entry, post2Entry, post3Entry],
);
});
});
@@ -69,7 +69,7 @@ describe('Markdoc - Content Collections', () => {
assert.notEqual(posts, null);
assert.deepEqual(
posts.sort().map((post) => formatPost(post)),
- [post1Entry, post2Entry, post3Entry]
+ [post1Entry, post2Entry, post3Entry],
);
});
});
diff --git a/packages/integrations/markdoc/test/image-assets.test.js b/packages/integrations/markdoc/test/image-assets.test.js
index 22534c607..0f98af4f1 100644
--- a/packages/integrations/markdoc/test/image-assets.test.js
+++ b/packages/integrations/markdoc/test/image-assets.test.js
@@ -38,7 +38,7 @@ describe('Markdoc - Image assets', () => {
const { document } = parseHTML(html);
assert.match(
document.querySelector('#relative > img')?.src,
- /\/_image\?href=.*%2Fsrc%2Fassets%2Frelative%2Foar.jpg%3ForigWidth%3D420%26origHeight%3D630%26origFormat%3Djpg&f=webp/
+ /\/_image\?href=.*%2Fsrc%2Fassets%2Frelative%2Foar.jpg%3ForigWidth%3D420%26origHeight%3D630%26origFormat%3Djpg&f=webp/,
);
});
@@ -48,7 +48,7 @@ describe('Markdoc - Image assets', () => {
const { document } = parseHTML(html);
assert.match(
document.querySelector('#alias > img')?.src,
- /\/_image\?href=.*%2Fsrc%2Fassets%2Falias%2Fcityscape.jpg%3ForigWidth%3D420%26origHeight%3D280%26origFormat%3Djpg&f=webp/
+ /\/_image\?href=.*%2Fsrc%2Fassets%2Falias%2Fcityscape.jpg%3ForigWidth%3D420%26origHeight%3D280%26origFormat%3Djpg&f=webp/,
);
});
diff --git a/packages/integrations/markdoc/test/render-html.test.js b/packages/integrations/markdoc/test/render-html.test.js
index 320c5b509..6f877d1e5 100644
--- a/packages/integrations/markdoc/test/render-html.test.js
+++ b/packages/integrations/markdoc/test/render-html.test.js
@@ -250,7 +250,7 @@ function renderComponentsHTMLChecks(html) {
const aside1SectionP1 = aside1Section.querySelector('p:nth-of-type(1)');
assert.equal(
aside1SectionP1.textContent,
- "I'm a Markdown paragraph inside an top-level aside tag"
+ "I'm a Markdown paragraph inside an top-level aside tag",
);
const aside1H2_1 = aside1Section.querySelector('h2:nth-of-type(1)');
assert.equal(aside1H2_1.id, 'im-an-h2-via-markdown-markup'); // automatic slug
diff --git a/packages/integrations/markdoc/test/syntax-highlighting.test.js b/packages/integrations/markdoc/test/syntax-highlighting.test.js
index 7b2016808..f47b891f4 100644
--- a/packages/integrations/markdoc/test/syntax-highlighting.test.js
+++ b/packages/integrations/markdoc/test/syntax-highlighting.test.js
@@ -40,7 +40,7 @@ describe('Markdoc - syntax highlighting', () => {
ast,
await getConfigExtendingShiki({
theme: 'dracula',
- })
+ }),
);
assert.equal(content.children.length, 2);
for (const codeBlock of content.children) {
@@ -57,7 +57,7 @@ describe('Markdoc - syntax highlighting', () => {
ast,
await getConfigExtendingShiki({
wrap: true,
- })
+ }),
);
assert.equal(content.children.length, 2);
for (const codeBlock of content.children) {