Skip to content

Instantly share code, notes, and snippets.

@particlebanana
Created September 18, 2013 21:43
Show Gist options
  • Save particlebanana/6616181 to your computer and use it in GitHub Desktop.
Save particlebanana/6616181 to your computer and use it in GitHub Desktop.
Mocha before helper to show how to lift Sails
/**
* Bootstrap
*/
var Sails = require('sails');
/**
* Before ALL the test bootstrap the server
*/
before(function(done) {
this.timeout(5000);
Sails.lift({
log: {
level: 'error'
}
}, function(err, sails) {
done(err, sails);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment