Skip to content

Commit 1e2fb8c

Browse files
committed
Update test descriptions
1 parent 207dd6d commit 1e2fb8c

1 file changed

Lines changed: 18 additions & 19 deletions

File tree

packages/core/test/unit/html/includePanelProcessor.test.ts

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ const expectedErrors = [
1919

2020
beforeAll(() => {
2121
logger.info(
22-
`The following ${
23-
expectedErrors.length === 1 ? 'error is' : 'errors are'
22+
`The following ${expectedErrors.length === 1 ? 'error is' : 'errors are'
2423
} expected to be thrown during the test run:`,
2524
);
2625
expectedErrors.forEach((error, index) => {
@@ -136,21 +135,21 @@ test('includeFile import footnote from hash', async () => {
136135
const nodeProcessor = getNewDefaultNodeProcessor();
137136
const result = await nodeProcessor.process(indexPath, index);
138137
const expected = '<div>\n'
139-
+ '<p>text<trigger for="pop:footnotefn-1-1"><sup class="footnote-ref"><a aria-describedby="'
140-
+ 'footnote-label" href="#fn-1-1">[1]</a></sup>'
141-
+ '</trigger></p></div><hr class="footnotes-sep">\n'
142-
+ '<section class="footnotes">\n'
143-
+ '<ol class="footnotes-list">\n'
144-
+ '<popover id="pop:footnotefn-1-1">\n'
145-
+ ' <template #content><div>\n'
146-
+ ' <p>footnote</p>\n'
147-
+ '\n'
148-
+ ' </div></template>\n'
149-
+ ' </popover>\n'
150-
+ '<li id="fn-1-1" class="footnote-item"><p>footnote</p>\n'
151-
+ '</li>\n'
152-
+ '</ol>\n'
153-
+ '</section>\n';
138+
+ '<p>text<trigger for="pop:footnotefn-1-1"><sup class="footnote-ref"><a aria-describedby="'
139+
+ 'footnote-label" href="#fn-1-1">[1]</a></sup>'
140+
+ '</trigger></p></div><hr class="footnotes-sep">\n'
141+
+ '<section class="footnotes">\n'
142+
+ '<ol class="footnotes-list">\n'
143+
+ '<popover id="pop:footnotefn-1-1">\n'
144+
+ ' <template #content><div>\n'
145+
+ ' <p>footnote</p>\n'
146+
+ '\n'
147+
+ ' </div></template>\n'
148+
+ ' </popover>\n'
149+
+ '<li id="fn-1-1" class="footnote-item"><p>footnote</p>\n'
150+
+ '</li>\n'
151+
+ '</ol>\n'
152+
+ '</section>\n';
154153

155154
expect(result).toEqual(expected);
156155
});
@@ -425,7 +424,7 @@ test('includeFile detects cyclic references for static cyclic includes', async (
425424
loggerErrorSpy.mockRestore();
426425
});
427426

428-
test('includeFile replaces <include src="doesNotExist.md> with error <div>', async () => {
427+
test('includeFile replaces <include src="doesNotExist.md"> with error <div>', async () => {
429428
const indexPath = path.resolve('index.md');
430429

431430
const index = [
@@ -568,7 +567,7 @@ test('process include with omitFrontmatter should discard included frontmatter d
568567
expect(nodeProcessor.frontmatter).toEqual(expectedFrontmatter);
569568
});
570569

571-
test('process popover should replace popover with <div>', async () => {
570+
test('process popover should replace popover with template content', async () => {
572571
const indexPath = path.resolve('index.md');
573572

574573
const index = [

0 commit comments

Comments
 (0)