diff --git a/plugins/mongoose-aggregate-paginate-v2/test/index.test.js b/plugins/mongoose-aggregate-paginate-v2/test/index.test.js index d779fb8..ca93339 100644 --- a/plugins/mongoose-aggregate-paginate-v2/test/index.test.js +++ b/plugins/mongoose-aggregate-paginate-v2/test/index.test.js @@ -35,7 +35,7 @@ beforeAll(async () => { await mongoose.connection.db.dropDatabase(); let book, books = []; const date = new Date(); - await Author.create({ + return Author.create({ name: "Arthur Conan Doyle" }).then(async function (author) { for (let i = 1; i <= 100; i++) {