Currently, I'm creating API tests. Before all the tests, the database is refreshed by dropping and creating the tables.
before(function(done) {
database.dropTables(function(){
database.createTables(function () {
console.log('database cleaned');
done();
});
});
})
When I try to run my tests, I get a timeout at this before hook, although i'm calling the done function.
Aucun commentaire:
Enregistrer un commentaire