bootstrap.test.js 445 Bytes
var Sails = require('sails'),
    sails;

before(function(done) {
    // mocha hook time out 
    this.timeout(10000);
    Sails.lift({
        // configuration for testing purposes
    }, function(err, server) {
        sails = server;
        if (err) return done(err);
        // here you can load fixtures, etc.
        done(err, sails);
    });
});

after(function(done) {
    // here you can clear fixtures, etc.
    Sails.lower(done);
});