diff options
author | 2024-08-08 05:12:50 -0500 | |
---|---|---|
committer | 2024-08-08 12:12:50 +0200 | |
commit | 72c7ae9901de927ae8d9d5be63cbaef4f976422c (patch) | |
tree | 6e41a6b07ad8830375ba7b0e4d924fd9449dc7ef /packages/integrations/mdx/test/mdx-get-headings.test.js | |
parent | 85de47cd982fd13c6286bcc0be384a220996ccbd (diff) | |
download | astro-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/mdx/test/mdx-get-headings.test.js')
-rw-r--r-- | packages/integrations/mdx/test/mdx-get-headings.test.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/integrations/mdx/test/mdx-get-headings.test.js b/packages/integrations/mdx/test/mdx-get-headings.test.js index 29bb427cc..4de8b0a6e 100644 --- a/packages/integrations/mdx/test/mdx-get-headings.test.js +++ b/packages/integrations/mdx/test/mdx-get-headings.test.js @@ -43,7 +43,7 @@ describe('MDX getHeadings', () => { { depth: 3, slug: 'subsection-1', text: 'Subsection 1' }, { depth: 3, slug: 'subsection-2', text: 'Subsection 2' }, { depth: 2, slug: 'section-2', text: 'Section 2' }, - ]) + ]), ); }); @@ -59,7 +59,7 @@ describe('MDX getHeadings', () => { }, { depth: 2, slug: 'h2title', text: 'h2Title' }, { depth: 3, slug: 'h3title', text: 'h3Title' }, - ]) + ]), ); }); }); @@ -100,7 +100,7 @@ describe('MDX heading IDs can be customized by user plugins', () => { const headingIDs = document.querySelectorAll('h1,h2,h3').map((el) => el.id); assert.equal( JSON.stringify(headingIDs), - JSON.stringify(Array.from({ length: headingIDs.length }, (_, idx) => String(idx))) + JSON.stringify(Array.from({ length: headingIDs.length }, (_, idx) => String(idx))), ); }); @@ -114,7 +114,7 @@ describe('MDX heading IDs can be customized by user plugins', () => { { depth: 3, slug: '2', text: 'Subsection 1' }, { depth: 3, slug: '3', text: 'Subsection 2' }, { depth: 2, slug: '4', text: 'Section 2' }, - ]) + ]), ); }); }); @@ -194,7 +194,7 @@ describe('MDX headings with frontmatter', () => { { depth: 4, slug: 'item-2', text: 'Item 2' }, { depth: 5, slug: 'nested-item-3', text: 'Nested Item 3' }, { depth: 6, slug: 'frontmatterunknown', text: 'frontmatter.unknown' }, - ]) + ]), ); }); }); |