Skip to content

Instantly share code, notes, and snippets.

@robksawyer
Created November 26, 2014 08:01
Show Gist options
  • Save robksawyer/b3c39a2fe9ef80adf796 to your computer and use it in GitHub Desktop.
Save robksawyer/b3c39a2fe9ef80adf796 to your computer and use it in GitHub Desktop.
appHelper.fixtures = null
var sails = require('sails'),
sinon = require('sinon'),
assert = require('assert'),
request = require('supertest'),
appHelper = require('../../helpers/appHelper'),
agent = request.agent('http://localhost:1337');
before(function(done){
appHelper.lift(done);
});
describe('UserController', function (done) {
console.log(appHelper.fixtures);
});
after(function (done) {
// Restart the server to get back to a clean state
// (could just delete the user in this case, but sometimes this is easier)
appHelper.lift(done);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment