mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
added comments to linter
This commit is contained in:
@@ -3,8 +3,10 @@ const mongoose = require('../../services/mongoose');
|
||||
// Ensure the NODE_ENV is set to 'test',
|
||||
// this is helpful when you would like to change behavior when testing.
|
||||
function clearDB() {
|
||||
|
||||
// console.log('Clearing DB', mongoose.connection);
|
||||
for (let i in mongoose.connection.collections) {
|
||||
|
||||
// console.log('Clearing', i);
|
||||
mongoose.connection.collections[i].remove(function() {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user