Skip to content

Commit 9fc67d8

Browse files
committed
Update dev-dependencies
1 parent 1a7cca6 commit 9fc67d8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@types/node": "^20.0.0",
4545
"c8": "^8.0.0",
4646
"is-hidden": "^2.0.0",
47-
"mdast-util-from-markdown": "^1.0.0",
48-
"mdast-util-to-markdown": "^1.0.0",
47+
"mdast-util-from-markdown": "^2.0.0",
48+
"mdast-util-to-markdown": "^2.0.0",
4949
"prettier": "^2.0.0",
5050
"remark-cli": "^11.0.0",
5151
"remark-preset-wooorm": "^9.0.0",

test/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,12 @@ test('zone', async function (t) {
3636
/** @type {{default: (tree: Root) => undefined}} */
3737
const mod = await import(new URL(folder + '/index.js', root).href)
3838
const check = mod.default
39-
// To do: remove cast when `from-markdown` is released.
40-
const tree = /** @type {Root} */ (
41-
fromMarkdown(await fs.readFile(new URL(folder + '/input.md', root)))
39+
const tree = fromMarkdown(
40+
await fs.readFile(new URL(folder + '/input.md', root))
4241
)
4342

4443
check(tree)
4544

46-
// @ts-expect-error: remove cast when `to-markdown` is released.
4745
const result = toMarkdown(tree)
4846

4947
assert.equal(result, expected)

0 commit comments

Comments
 (0)