Skip to content

Instantly share code, notes, and snippets.

@MandarinConLaBarba
Last active December 14, 2015 09:39
Show Gist options
  • Save MandarinConLaBarba/5066835 to your computer and use it in GitHub Desktop.
Save MandarinConLaBarba/5066835 to your computer and use it in GitHub Desktop.
(function(root, enqueue) {
// Set up appropriately for the environment.
if (typeof exports !== 'undefined') {
// Node/CommonJS, need jQuery-deferred instead of regular jQuery
enqueue(
require('jquery-deferred'),
require("underscore"),
require('sinon'),
require('should'),
require('../sebastian').flow);
} else if (typeof define === 'function' && define.amd) {
// AMD/Testacular
define(['jquery', 'underscore', 'sinon', 'chai', 'sebastian'], function($, _, sinon, chai, sebastian) {
enqueue($, _, sinon, chai.Should(), sebastian.flow);
});
}
}(this, function($, _, sinon, should, flow) {
//Specs go here
describe("some specification", function(){
it("should do stuff", function() {
//assert
});
});
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment