[ci] format

This commit is contained in:
matthewp 2022-08-25 21:24:13 +00:00 committed by fredkbot
parent ac03218247
commit 4faee5afed
2 changed files with 12 additions and 11 deletions

View file

@ -14,8 +14,11 @@ async function buildFixture(config) {
function remarkExamplePlugin() {
return (tree) => {
tree.children.push({ type: 'paragraph', children: [{ type: 'text', value: 'Remark plugin applied!' }] })
}
tree.children.push({
type: 'paragraph',
children: [{ type: 'text', value: 'Remark plugin applied!' }],
});
};
}
describe('Astro Markdown plugins', () => {
@ -48,9 +51,7 @@ describe('Astro Markdown plugins', () => {
const fixture = await buildFixture({
markdown: {
remarkPlugins: [remarkExamplePlugin],
rehypePlugins: [
[addClasses, { 'h1,h2,h3': 'title' }],
],
rehypePlugins: [[addClasses, { 'h1,h2,h3': 'title' }]],
extendDefaultPlugins,
},
});
@ -70,6 +71,6 @@ describe('Astro Markdown plugins', () => {
// test 3: (sanity check) rehype plugins still applied
expect($('#github-flavored-markdown-test')).to.have.lengthOf(1);
expect($('#github-flavored-markdown-test').hasClass('title')).to.equal(true);
})
});
}
});