Skip to content

Commit fce1820

Browse files
committed
fix test
1 parent 2ab94ae commit fce1820

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

packages/markdown/tests/__snapshots__/remarkDirectivePagelist.test.ts.snap

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -308,27 +308,7 @@ exports[`remarkDirectiveEmbed > should transform 1`] = `
308308
`;
309309

310310
exports[`remarkDirectiveEmbed > should transform directive in snippet 1`] = `
311-
VFile {
312-
"cwd": "/home/mike/Sources/openpatch/hyperbook/packages/markdown",
313-
"data": {
314-
"directives": {
315-
"pagelist": {
316-
"scripts": [],
317-
"styles": [
318-
"style.css",
319-
],
320-
},
321-
"tiles": {
322-
"scripts": [],
323-
"styles": [
324-
"style.css",
325-
],
326-
},
327-
},
328-
},
329-
"history": [],
330-
"messages": [],
331-
"value": "
311+
"
332312
<div class="directive-pagelist">
333313
<div class="directive-tiles">
334314
<ul class="tiles">
@@ -361,6 +341,5 @@ VFile {
361341
</ul>
362342
</div>
363343
</div>
364-
",
365-
}
344+
"
366345
`;

packages/markdown/tests/remarkDirectivePagelist.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe("remarkDirectiveEmbed", () => {
159159
::pagelist{format="#portal" source="href(/elements/.*)" orderBy="index"}
160160
`,
161161
realCtx,
162-
),
162+
).value,
163163
).toMatchSnapshot();
164164
});
165165
});

0 commit comments

Comments
 (0)