Skip to content

Commit 21864f4

Browse files
committed
Populate database before tests.
1 parent a8f3d80 commit 21864f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/__tests__/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ describe('mongoose-cursor-pagination', function () {
2323
})
2424

2525
before(function () {
26-
/* return mongoose.model('User').insertMany(Array(1000)
26+
return mongoose.model('User').insertMany(Array(1000)
2727
.fill()
2828
.map((_, i) => ({
2929
name: `User ${i}`,
3030
value: i
31-
}))) */
31+
})))
3232
})
3333

3434
after(function () {
35-
// return mongoose.model('User').remove()
35+
return mongoose.model('User').remove()
3636
})
3737

3838
it('pagination with no options', function () {

0 commit comments

Comments
 (0)