Skip to content

Commit 5dd9f26

Browse files
committed
Replace dev-dependency
1 parent 48a6c9e commit 5dd9f26

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
import assert from 'node:assert'
66
import test from 'tape'
7-
import {remark} from 'remark'
7+
import {fromMarkdown} from 'mdast-util-from-markdown'
88
import {findBefore} from './index.js'
99

10-
test('unist-util-find-before', (t) => {
11-
const tree = remark().parse('Some *emphasis*, **importance**, and `code`.')
10+
test('`findBefore`', (t) => {
11+
const tree = fromMarkdown('Some *emphasis*, **importance**, and `code`.')
1212

1313
assert(tree.type === 'root')
1414
const paragraph = tree.children[0]

0 commit comments

Comments
 (0)