Skip to content

Commit

Permalink
chore: Move test callback into function
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Aug 29, 2022
1 parent 0fdef52 commit fcedc3b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions test/parallel.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ describe('parallel', function () {
})(function (error) {
expect(error).toEqual(null);
expect(arr).toEqual(fns);
done();
});
done();
});

it('allows array of functions & extensions object', function (done) {
Expand All @@ -102,7 +102,7 @@ describe('parallel', function () {
})(function (error) {
expect(error).toEqual(null);
expect(arr).toEqual(fns);
done();
});
done();
});
});
4 changes: 2 additions & 2 deletions test/series.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ describe('series', function () {
})(function (error) {
expect(error).toEqual(null);
expect(arr).toEqual(fns);
done();
});
done();
});

it('allows array of functions & extensions object', function (done) {
Expand All @@ -101,7 +101,7 @@ describe('series', function () {
})(function (error) {
expect(error).toEqual(null);
expect(arr).toEqual(fns);
done();
});
done();
});
});
4 changes: 2 additions & 2 deletions test/settleParallel.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ describe('settleParallel', function () {
})(function (error) {
expect(error).toEqual(null);
expect(arr).toEqual(fns);
done();
});
done();
});

it('allows array of functions & extensions object', function (done) {
Expand All @@ -102,7 +102,7 @@ describe('settleParallel', function () {
})(function (error) {
expect(error).toEqual(null);
expect(arr).toEqual(fns);
done();
});
done();
});
});
4 changes: 2 additions & 2 deletions test/settleSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ describe('settleSeries', function () {
})(function (error) {
expect(error).toEqual(null);
expect(arr).toEqual(fns);
done();
});
done();
});

it('allows array of functions & extensions object', function (done) {
Expand All @@ -102,7 +102,7 @@ describe('settleSeries', function () {
})(function (error) {
expect(error).toEqual(null);
expect(arr).toEqual(fns);
done();
});
done();
});
});

0 comments on commit fcedc3b

Please sign in to comment.