Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.