Skip to content

Commit e2dfd84

Browse files
committed
Replace dev-dependency
1 parent afa93a2 commit e2dfd84

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"devDependencies": {
3838
"@types/tape": "^4.0.0",
3939
"c8": "^7.0.0",
40+
"mdast-util-from-markdown": "^1.0.0",
4041
"prettier": "^2.0.0",
41-
"remark": "^14.0.0",
4242
"remark-cli": "^10.0.0",
4343
"remark-preset-wooorm": "^9.0.0",
4444
"rimraf": "^3.0.0",

test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
*/
55

66
import test from 'tape'
7-
import {remark} from 'remark'
7+
import {fromMarkdown} from 'mdast-util-from-markdown'
88
import {findAfter} from './index.js'
99

10-
const tree = remark().parse('Some _emphasis_, **importance**, and `code`.')
11-
/** @type {Parent} */
12-
// @ts-expect-error fine.
13-
const paragraph = tree.children[0]
10+
const tree = fromMarkdown('Some _emphasis_, **importance**, and `code`.')
11+
const paragraph = /** @type {Parent} */ (tree.children[0])
1412
const children = paragraph.children
1513

1614
test('unist-util-find-after', (t) => {

0 commit comments

Comments
 (0)