Skip to content

Commit

Permalink
Update xo
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 6, 2021
1 parent 077d217 commit 19aeb20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -57,7 +57,7 @@
"typescript": "^4.0.0",
"unist-builder": "^3.0.0",
"unist-util-remove-position": "^4.0.0",
"xo": "^0.39.0"
"xo": "^0.43.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
Expand Down
20 changes: 7 additions & 13 deletions test.js
Expand Up @@ -43,10 +43,8 @@ test('remarkSlug', (t) => {
t.deepEqual(
removePosition(
remark()
.use(() => {
return (tree) => {
tree.children[0].data = {foo: 'bar'}
}
.use(() => (tree) => {
tree.children[0].data = {foo: 'bar'}
})
.use(remarkSlug)
.runSync(remark().parse('# Normal\n')),
Expand All @@ -68,10 +66,8 @@ test('remarkSlug', (t) => {
t.deepEqual(
removePosition(
remark()
.use(() => {
return (tree) => {
tree.children[0].data = {hProperties: {className: ['foo']}}
}
.use(() => (tree) => {
tree.children[0].data = {hProperties: {className: ['foo']}}
})
.use(remarkSlug)
.runSync(remark().parse('# Normal\n')),
Expand All @@ -93,11 +89,9 @@ test('remarkSlug', (t) => {
t.deepEqual(
removePosition(
remark()
.use(() => {
return (tree) => {
tree.children[1].data = {hProperties: {id: 'here'}}
tree.children[3].data = {hProperties: {id: 'something'}}
}
.use(() => (tree) => {
tree.children[1].data = {hProperties: {id: 'here'}}
tree.children[3].data = {hProperties: {id: 'something'}}
})
.use(remarkSlug)
.runSync(
Expand Down

0 comments on commit 19aeb20

Please sign in to comment.