Created
October 30, 2013 15:03
-
-
Save deedubs/7234163 to your computer and use it in GitHub Desktop.
Kill db after test run using mocha and mongoose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| after(function (done) { | |
| mongoose.connection.db.dropDatabase(function () { | |
| mongoose.connection.close(done); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment