Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
after(function (done) {
this.timeout(5000);
console.log('sails lower');
Sails.lower(done);
});
.then(function( /*result*/ ) {
sails.lower(done);
})
.catch(function(error) {
afterAll(function(done) {
//-- NOTE: This is a workaround for sails.lower multiple callback calls...
var _shutting_down = false;
function _shutdown(err) {
if (!_shutting_down) {
_shutting_down = true;
done && done(err);
}
}
Sails.lower(_shutdown);
});
AfterAll(function(done) {
sails.lower(done);
});
.then(function( /*result*/ ) {
sails.lower(done);
})
.catch(function(error) {
.then(function(result) {
sails.lower(done);
})
.catch(function(error) {