mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-06 23:39:02 +02:00
Wait for async saving and removing
This commit is contained in:
@@ -57,8 +57,8 @@ describe('Article Model Unit Tests:', function() {
|
||||
});
|
||||
|
||||
afterEach(function(done) {
|
||||
Article.remove().exec();
|
||||
User.remove().exec();
|
||||
done();
|
||||
Article.remove().exec(function() {
|
||||
User.remove().exec(done);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user