[ci] format

This commit is contained in:
bholmesdev 2022-08-03 21:56:30 +00:00 committed by fredkbot
parent 2968ba2b6f
commit 66319cb49f

View file

@ -14,7 +14,7 @@ describe('MDX frontmatter', () => {
integrations: [mdx()], integrations: [mdx()],
}); });
await fixture.build(); await fixture.build();
}) });
it('builds when "frontmatter.property" is in JSX expression', async () => { it('builds when "frontmatter.property" is in JSX expression', async () => {
expect(true).to.equal(true); expect(true).to.equal(true);
}); });
@ -48,8 +48,9 @@ describe('MDX frontmatter', () => {
const html = await fixture.readFile('/with-headings/index.html'); const html = await fixture.readFile('/with-headings/index.html');
const { document } = parseHTML(html); const { document } = parseHTML(html);
const headingSlugs = [...document.querySelectorAll('[data-headings] > li')] const headingSlugs = [...document.querySelectorAll('[data-headings] > li')].map(
.map(el => el.textContent); (el) => el.textContent
);
expect(headingSlugs.length).to.be.greaterThan(0); expect(headingSlugs.length).to.be.greaterThan(0);
expect(headingSlugs).to.contain('section-1'); expect(headingSlugs).to.contain('section-1');