Created
September 18, 2013 21:43
-
-
Save particlebanana/6616181 to your computer and use it in GitHub Desktop.
Mocha before helper to show how to lift Sails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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