Skip to content

Commit 4290da2

Browse files
committed
Fix style
1 parent 4b036e4 commit 4290da2

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,7 @@ describe('mdast-util-heading-range(heading, callback)', function () {
223223
});
224224

225225
it('should not fail without nodes', function () {
226-
equal(process(
227-
'# Foo\n'
228-
),
229-
'# Foo\n'
230-
);
226+
equal(process('# Foo\n'), '# Foo\n');
231227
});
232228

233229
it('should not remove anything when `null` is given', function (done) {
@@ -275,14 +271,13 @@ describe('mdast-util-heading-range(heading, callback)', function () {
275271
it('should call back with the correct number of children', function (done) {
276272
var seen;
277273
mdast().use(function (processor) {
278-
processor.use(heading('foo', function (start, nodes, end) {
274+
processor.use(heading('foo', function (start, nodes) {
279275
seen = nodes;
280276
return null;
281277
}));
282-
}).process('a\n\na\n\na\n\na\n\na\n\n## Foo\n\none\n\ntwo\n\nthree\n\n## Bar', function (exception, file, doc) {
278+
}).process('a\n\na\n\na\n\na\n\na\n\n## Foo\n\none\n\ntwo\n\nthree\n\n## Bar', function (exception) {
283279
equal(seen.length, 3);
284280
done(exception);
285281
});
286282
});
287-
288283
});

0 commit comments

Comments
 (0)