How to use the sails.lower function in sails

To help you get started, we’ve selected a few sails examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github swelham / sails-jwt-example / test / index.js View on Github external
after(function (done) {
  this.timeout(5000);
  console.log('sails lower');
  Sails.lower(done);
});
github lykmapipo / sails-hook-seed / test / bootstrap.spec.js View on Github external
.then(function( /*result*/ ) {
            sails.lower(done);
        })
        .catch(function(error) {
github zand3rs / sails-test-helper / lib / bootstrap.js View on Github external
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);
});
github lykmapipo / sails-hook-validation / test / bootstrap.spec.js View on Github external
.then(function( /*result*/ ) {
            sails.lower(done);
        })
        .catch(function(error) {
github lykmapipo / sails-police / test / bootstrap.spec.js View on Github external
.then(function(result) {
            sails.lower(done);
        })
        .catch(function(error) {