Skip to content

Commit 2f3214b

Browse files
committed
Update dev-dependencies
1 parent f660b18 commit 2f3214b

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

index.test-d.ts

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -99,30 +99,18 @@ if (is(element, isElement)) {
9999
}
100100

101101
/* Should support object tests. */
102-
expectType<boolean>(
103-
is<Heading>(heading, {type: 'heading', depth: 2})
104-
)
105-
expectType<boolean>(
106-
is<Heading>(element, {type: 'heading', depth: 2})
107-
)
108-
expectError(
109-
is<Heading>(heading, {type: 'heading', depth: '2'})
110-
)
102+
expectType<boolean>(is<Heading>(heading, {type: 'heading', depth: 2}))
103+
expectType<boolean>(is<Heading>(element, {type: 'heading', depth: 2}))
104+
expectError(is<Heading>(heading, {type: 'heading', depth: '2'}))
111105

112106
if (is<Heading>(heading, {type: 'heading', depth: 2})) {
113107
expectType<Heading>(heading)
114108
expectNotType<Element>(heading)
115109
}
116110

117-
expectType<boolean>(
118-
is<Element>(element, {type: 'element', tagName: 'section'})
119-
)
120-
expectType<boolean>(
121-
is<Element>(heading, {type: 'element', tagName: 'section'})
122-
)
123-
expectError(
124-
is<Element>(element, {type: 'element', tagName: true})
125-
)
111+
expectType<boolean>(is<Element>(element, {type: 'element', tagName: 'section'}))
112+
expectType<boolean>(is<Element>(heading, {type: 'element', tagName: 'section'}))
113+
expectError(is<Element>(element, {type: 'element', tagName: true}))
126114

127115
if (is<Element>(element, {type: 'element', tagName: 'section'})) {
128116
expectType<Element>(element)
@@ -181,9 +169,7 @@ unified().use(() => (tree) => {
181169
convert<Heading>('heading')
182170
expectError(convert<Heading>('element'))
183171
convert<Heading>({type: 'heading', depth: 2})
184-
expectError(
185-
convert<Element>({type: 'heading', depth: 2})
186-
)
172+
expectError(convert<Element>({type: 'heading', depth: 2}))
187173
convert<Heading>(isHeading)
188174
expectError(convert<Element>(isHeading))
189175
convert()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"type-coverage": "^2.0.0",
5353
"typescript": "^4.0.0",
5454
"unified": "^9.0.0",
55-
"xo": "^0.38.0"
55+
"xo": "^0.39.0"
5656
},
5757
"scripts": {
5858
"prepack": "npm run build && npm run format",

0 commit comments

Comments
 (0)