Skip to content

Commit 074f903

Browse files
committed
Update dev-dependencies
1 parent decdf74 commit 074f903

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
"@types/tape": "^4.0.0",
3939
"c8": "^7.0.0",
4040
"prettier": "^2.0.0",
41-
"remark": "^13.0.0",
42-
"remark-cli": "^9.0.0",
43-
"remark-preset-wooorm": "^8.0.0",
41+
"remark": "^14.0.0",
42+
"remark-cli": "^10.0.0",
43+
"remark-preset-wooorm": "^9.0.0",
4444
"rimraf": "^3.0.0",
4545
"tape": "^5.0.0",
4646
"type-coverage": "^2.0.0",
4747
"typescript": "^4.0.0",
48-
"xo": "^0.42.0"
48+
"xo": "^0.49.0"
4949
},
5050
"scripts": {
5151
"prepack": "npm run build && npm run format",

test.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
/**
2+
* @typedef {import('mdast').Paragraph} Paragraph
3+
*/
4+
15
import test from 'tape'
2-
import remark from 'remark'
6+
import {remark} from 'remark'
37
import {findAllBefore} from './index.js'
48

59
const tree = remark().parse('Some _emphasis_, **importance**, and `code`.')
6-
// @ts-expect-error hush.
7-
const paragraph = tree.children[0]
10+
const paragraph = /** @type {Paragraph} */ (tree.children[0])
811
const children = paragraph.children
912

1013
test('unist-util-find-all-before', (t) => {
@@ -86,31 +89,37 @@ test('unist-util-find-all-before', (t) => {
8689
)
8790

8891
t.deepEqual(
92+
// @ts-expect-error: TypeScript does not understand things.
8993
findAllBefore(paragraph, 100, children[0]),
9094
[children[0]],
9195
'should return `[node]` when given a `node` and existing (#1)'
9296
)
9397
t.deepEqual(
98+
// @ts-expect-error: TypeScript does not understand things.
9499
findAllBefore(paragraph, children[1], children[0]),
95100
[children[0]],
96101
'should return `[node]` when given a `node` and existing (#2)'
97102
)
98103
t.deepEqual(
104+
// @ts-expect-error: TypeScript does not understand things.
99105
findAllBefore(paragraph, 1, children[0]),
100106
[children[0]],
101107
'should return `[node]` when given a `node` and existing (#3)'
102108
)
103109
t.deepEqual(
110+
// @ts-expect-error: TypeScript does not understand things.
104111
findAllBefore(paragraph, children[0], children[0]),
105112
[],
106113
'should return `[node]` when given a `node` and existing (#4)'
107114
)
108115
t.deepEqual(
116+
// @ts-expect-error: TypeScript does not understand things.
109117
findAllBefore(paragraph, 0, children[0]),
110118
[],
111119
'should return `[node]` when given a `node` and existing (#5)'
112120
)
113121
t.deepEqual(
122+
// @ts-expect-error: TypeScript does not understand things.
114123
findAllBefore(paragraph, 1, children[1]),
115124
[],
116125
'should return `[node]` when given a `node` and existing (#6)'

0 commit comments

Comments
 (0)