[ci] format
This commit is contained in:
parent
2968ba2b6f
commit
66319cb49f
1 changed files with 4 additions and 3 deletions
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue