Skip to content

Commit 37c7fe3

Browse files
committed
Update dev-dependencies
1 parent b938821 commit 37c7fe3

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@
4141
"@types/mdast": "^3.0.0",
4242
"@types/tape": "^4.0.0",
4343
"c8": "^7.0.0",
44-
"fast-check": "^2.0.0",
44+
"fast-check": "^3.0.0",
4545
"lodash": "^4.0.0",
4646
"prettier": "^2.0.0",
47-
"remark-cli": "^9.0.0",
48-
"remark-preset-wooorm": "^8.0.0",
47+
"remark-cli": "^10.0.0",
48+
"remark-preset-wooorm": "^9.0.0",
4949
"rimraf": "^3.0.0",
5050
"tape": "^5.0.0",
51-
"tsd": "^0.17.0",
51+
"tsd": "^0.20.0",
5252
"type-coverage": "^2.0.0",
5353
"typescript": "^4.0.0",
5454
"unified": "^10.0.0",
55-
"xo": "^0.42.0"
55+
"xo": "^0.49.0"
5656
},
5757
"scripts": {
5858
"prepack": "npm run build && npm run format",

test/property.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* @typedef {import('unist').Node} Node
3+
*/
4+
15
import test from 'tape'
26
import fc from 'fast-check'
37
import lodash from 'lodash'
@@ -10,6 +14,7 @@ test('unist-util-is properties', (t) => {
1014
t.doesNotThrow(
1115
() =>
1216
fc.assert(
17+
// @ts-expect-error: fine.
1318
fc.property(fc.record({type: fc.string({minLength: 1})}), (node) =>
1419
is(node)
1520
)
@@ -21,10 +26,11 @@ test('unist-util-is properties', (t) => {
2126
() =>
2227
fc.assert(
2328
fc.property(
24-
fc.unicodeJsonObject().filter(
29+
fc.unicodeJsonValue().filter(
2530
// @ts-expect-error Looks like a node.
2631
(node) => !(isPlainObject(node) && typeof node.type === 'string')
2732
),
33+
// @ts-expect-error: fine.
2834
(node) => !is(node)
2935
)
3036
),
@@ -34,9 +40,10 @@ test('unist-util-is properties', (t) => {
3440
t.doesNotThrow(
3541
() =>
3642
fc.assert(
37-
fc.property(fc.record({type: fc.string({minLength: 1})}), (node) =>
43+
// @ts-expect-error: fine.
44+
fc.property(fc.record({type: fc.string({minLength: 1})}), node => {
3845
is(node, node.type)
39-
)
46+
})
4047
),
4148
'should match types'
4249
)
@@ -45,9 +52,8 @@ test('unist-util-is properties', (t) => {
4552
() =>
4653
fc.assert(
4754
fc.property(
48-
// @ts-expect-error: hush
4955
fc
50-
.unicodeJsonObject()
56+
.unicodeJsonValue()
5157
// Filter for JSON objects which unist can work with
5258
.filter(
5359
(node) =>
@@ -66,6 +72,7 @@ test('unist-util-is properties', (t) => {
6672
)
6773
)
6874
),
75+
// @ts-expect-error: fine.
6976
fc.string({minLength: 1}),
7077
(
7178
/** @type {[Object.<string, unknown>, Array.<string>]} */ nodeAndKeys,

0 commit comments

Comments
 (0)