Skip to content

Commit e28bfe3

Browse files
committed
Refactor
1 parent 39a5d6f commit e28bfe3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,15 @@ test('unist-util-find-after', function(t) {
4343
t.doesNotThrow(function() {
4444
assert.throws(function() {
4545
findAfter(
46-
{
47-
type: 'foo',
48-
children: [{type: 'bar'}, {type: 'baz'}]
49-
},
46+
{type: 'foo', children: [{type: 'bar'}, {type: 'baz'}]},
5047
0,
5148
false
5249
)
5350
}, /Expected function, string, or object as test/)
5451

5552
assert.throws(function() {
5653
findAfter(
57-
{
58-
type: 'foo',
59-
children: [{type: 'bar'}, {type: 'baz'}]
60-
},
54+
{type: 'foo', children: [{type: 'bar'}, {type: 'baz'}]},
6155
0,
6256
true
6357
)

0 commit comments

Comments
 (0)