-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gulp:mocha): have tests clean up once complete
mocha unit and integration tests will hang unless express (and optionally mongoose) are closed once the tests are complete
- Loading branch information
1 parent
fcad9c1
commit 93dec12
Showing
3 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import app from './';<% if (filters.mongoose) { %> | ||
import mongoose from 'mongoose';<% } %> | ||
|
||
after(function(done) { | ||
app.angularFullstack.on('close', () => done());<% if (filters.mongoose) { %> | ||
mongoose.connection.close();<% } %> | ||
app.angularFullstack.close(); | ||
}); |
This file contains 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