Testing Fix

This commit is contained in:
Amos Haviv
2013-12-03 02:19:04 +02:00
parent 7354e781f1
commit f358e810f5
2 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
// Karma configuration
// Generated on Sat Oct 05 2013 22:00:14 GMT+0700 (ICT)
module.exports = function (config) {
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
@@ -56,8 +56,8 @@ module.exports = function (config) {
},
coverageReporter: {
type : 'html',
dir : 'test/coverage/'
type: 'html',
dir: 'test/coverage/'
},
// web server port
@@ -96,4 +96,4 @@ module.exports = function (config) {
// if true, it capture browsers, run tests and exit
singleRun: false
});
};
};

View File

@@ -56,10 +56,10 @@ describe('<Unit Test>', function() {
User.remove({});
done();
});
after(function(done){
after(function(done) {
Article.remove().exec();
User.remove().exec();
done();
});
});
});
});