Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebarkmin committed May 22, 2024
1 parent e9359e1 commit 64e0de3
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 52 deletions.
18 changes: 9 additions & 9 deletions packages/markdown/tests/remarkCustomHeadingIds.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ describe("remarkHeadingId", () => {
`);

expect(String(file)).toMatchInlineSnapshot(`
"<h1>head</h1>
<h1 id=\\"idd-id\\">cus head1</h1>
<h1 id=\\"idd id\\">cus head2</h1>
<h1 id=\\"中文 id\\">cus head3</h1>"
`);
"<h1>head</h1>
<h1 id="idd-id">cus head1</h1>
<h1 id="idd id">cus head2</h1>
<h1 id="中文 id">cus head3</h1>"
`);
});

it("should parse well which contains inline syntax", async () => {
Expand All @@ -47,9 +47,9 @@ describe("remarkHeadingId", () => {
`);

expect(String(file)).toMatchInlineSnapshot(`
"<h1 id=\\"idd-id\\">cus <code>head1</code></h1>
<h2 id=\\"idd id\\">cus <strong>head2</strong></h2>
<h2 id=\\"idd id\\">cus <del>head2</del> </h2>"
`);
"<h1 id="idd-id">cus <code>head1</code></h1>
<h2 id="idd id">cus <strong>head2</strong></h2>
<h2 id="idd id">cus <del>head2</del> </h2>"
`);
});
});
1 change: 0 additions & 1 deletion platforms/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@
"@hyperbook/shell": "workspace:*",
"@hyperbook/store": "workspace:*",
"@hyperbook/styles": "workspace:*",
"fs-plus": "3.1.1",
"gray-matter": "4.0.3",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down
92 changes: 50 additions & 42 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 64e0de3

Please sign in to comment.