Better user model behavior and test teardown

This commit is contained in:
John Fenley
2013-10-11 18:03:52 -06:00
parent fe7173224f
commit b6830ba380
3 changed files with 32 additions and 6 deletions

View File

@@ -52,7 +52,14 @@ describe('<Unit Test>', function() {
});
afterEach(function(done) {
Article.remove({});
User.remove({});
done();
});
after(function(done){
Article.remove().exec();
User.remove().exec();
done();
});
});
});
});