Skip to content

Commit

Permalink
Fix: test termination
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Jun 22, 2024
1 parent dcf2fda commit bb0378c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/mongoose-aggregate-paginate-v2/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe("mongoose-paginate", function () {
expect(promise.then).toBeInstanceOf(Function);
});

it("callback test", function (done) {
it("callback test", async (done) =>{
var aggregate = Book.aggregate([
{
$match: {
Expand All @@ -78,7 +78,7 @@ describe("mongoose-paginate", function () {
}
]);

aggregate.paginateExec({}, function (err, result) {
await aggregate.paginateExec({}, function (err, result) {
expect(err).toBeNull();
expect(result).toBeInstanceOf(Object);
done();
Expand Down

0 comments on commit bb0378c

Please sign in to comment.