Skip to content

Commit 4d379ce

Browse files
committed
make test independent
1 parent 09678c9 commit 4d379ce

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed
Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`remarkLink > should transform image link 1`] = `
4-
VFile {
5-
"cwd": "/home/mike/Sources/openpatch/hyperbook/packages/markdown",
6-
"data": {},
7-
"history": [],
8-
"messages": [],
9-
"value": "
4+
"
105
<p>
116
<img src="/public/test.jpg" alt="A description">
127
</p>
13-
",
14-
}
8+
"
159
`;
1610
1711
exports[`remarkLink > should transform link 1`] = `
18-
VFile {
19-
"cwd": "/home/mike/Sources/openpatch/hyperbook/packages/markdown",
20-
"data": {},
21-
"history": [],
22-
"messages": [],
23-
"value": "
12+
"
2413
<p><a href="/public/test.jpg">A description</a></p>
25-
",
26-
}
14+
"
2715
`;

packages/markdown/tests/remarkLink.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const toHtml = (md: string, ctx: HyperbookContext) => {
1818
allowDangerousCharacters: true,
1919
allowDangerousHtml: true,
2020
})
21-
.processSync(md);
21+
.processSync(md).value;
2222
};
2323

2424
describe("remarkLink", () => {

0 commit comments

Comments
 (0)