Skip to content

Commit 08a7375

Browse files
committed
Update xo
1 parent fb35734 commit 08a7375

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"type-coverage": "^2.0.0",
4848
"typescript": "^4.0.0",
4949
"unified": "^9.0.0",
50-
"xo": "^0.39.0"
50+
"xo": "^0.42.0"
5151
},
5252
"scripts": {
5353
"prepack": "npm run build && npm run format",

test.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,18 @@ test('isElement', (t) => {
113113
)
114114

115115
st.equal(
116-
isElement({type: 'element', tagName: 'a', children: []}, (node) => {
117-
return node.children.length === 0
118-
}),
116+
isElement(
117+
{type: 'element', tagName: 'a', children: []},
118+
(node) => node.children.length === 0
119+
),
119120
true,
120121
'should call `test` if the given node is a valid element (1)'
121122
)
122123

123124
st.equal(
124125
isElement(
125126
{type: 'element', tagName: 'a', children: [{type: 'text'}]},
126-
(node) => {
127-
return node.children.length === 0
128-
}
127+
(node) => node.children.length === 0
129128
),
130129
false,
131130
'should call `test` if the given node is a valid element (2)'

0 commit comments

Comments
 (0)