Skip to content

Commit 5637f81

Browse files
committed
Update dev-dependencies
1 parent 721b4da commit 5637f81

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@
2929
"unist-util-is": "^2.0.0"
3030
},
3131
"devDependencies": {
32-
"nyc": "^12.0.1",
33-
"prettier": "^1.13.3",
34-
"remark-cli": "^5.0.0",
35-
"remark-preset-wooorm": "^4.0.0",
36-
"tape": "^4.4.0",
32+
"nyc": "^14.0.0",
33+
"prettier": "^1.0.0",
34+
"remark-cli": "^6.0.0",
35+
"remark-preset-wooorm": "^5.0.0",
36+
"tape": "^4.0.0",
3737
"unist-builder": "^1.0.0",
38-
"unist-util-select": "^1.3.0",
39-
"xo": "^0.21.1"
38+
"xo": "^0.24.0"
4039
},
4140
"scripts": {
4241
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",

test.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
var test = require('tape')
44
var u = require('unist-builder')
5-
var select = require('unist-util-select')
65
var filter = require('.')
76

87
test('should not traverse into children of filtered out nodes', function(t) {
@@ -64,18 +63,14 @@ test('should call iterator with `index` and `parent` args', function(t) {
6463
t.deepEqual(filter(tree, predicate), tree)
6564

6665
t.deepEqual(callLog, [
67-
[$('root'), null, null],
68-
[$('node'), 0, $('root')],
69-
[$('node > leaf'), 0, $('node')],
70-
[$('node + leaf'), 1, $('root')]
66+
[tree, null, null],
67+
[tree.children[0], 0, tree],
68+
[tree.children[0].children[0], 0, tree.children[0]],
69+
[tree.children[1], 1, tree]
7170
])
7271

7372
t.end()
7473

75-
function $() {
76-
return select.bind(null, tree).apply(this, arguments)[0]
77-
}
78-
7974
function predicate() {
8075
callLog.push([].slice.call(arguments))
8176
return true

0 commit comments

Comments
 (0)