Skip to content

Commit 758bd5c

Browse files
committed
Replace dev-dependency
1 parent 88ea528 commit 758bd5c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
"devDependencies": {
4040
"@types/node": "^18.0.0",
4141
"c8": "^7.0.0",
42+
"parse-english": "^6.0.0",
4243
"prettier": "^2.0.0",
4344
"remark-cli": "^11.0.0",
4445
"remark-preset-wooorm": "^9.0.0",
45-
"retext": "^8.0.0",
4646
"type-coverage": "^2.0.0",
4747
"typescript": "^4.0.0",
4848
"unist-util-visit": "^4.0.0",

test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import assert from 'node:assert/strict'
1212
import test from 'node:test'
13-
import {retext} from 'retext'
13+
import {ParseEnglish} from 'parse-english'
1414
import {visit} from 'unist-util-visit'
1515
import {isLiteral} from './index.js'
1616

@@ -182,5 +182,6 @@ test('isLiteral()', () => {
182182
* @param {Visitor} visitor
183183
*/
184184
function process(fixture, visitor) {
185-
visit(retext().parse(fixture), 'WordNode', visitor)
185+
const tree = new ParseEnglish().parse(fixture)
186+
visit(tree, 'WordNode', visitor)
186187
}

0 commit comments

Comments
 (0)