Moved contents of seasoned_api up to root folder
This commit is contained in:
9
tests/helpers/resetDatabase.js
Normal file
9
tests/helpers/resetDatabase.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const establishedDatabase = require('src/database/database');
|
||||
|
||||
function resetDatabase() {
|
||||
return Promise.resolve()
|
||||
.then(() => establishedDatabase.tearDown())
|
||||
.then(() => establishedDatabase.setUp())
|
||||
}
|
||||
|
||||
module.exports = resetDatabase;
|
||||
Reference in New Issue
Block a user