Skip to content

Instantly share code, notes, and snippets.

@andyperlitch
Created September 25, 2013 00:41
Show Gist options
  • Save andyperlitch/6693457 to your computer and use it in GitHub Desktop.
Save andyperlitch/6693457 to your computer and use it in GitHub Desktop.
An example test suite bundled by browserify
;(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}, cache:t, map:e[n][1]};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){
require('./test.spec');
},{"./test.spec":2}],2:[function(require,module,exports){
describe('a basic test suite', function() {
it('should have expect', function() {
expect(expect).to.be.a('function');
});
it('should have two tests', function() {
expect(true).to.equal(true);
});
});
},{}]},{},[1])
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment