Skip to content

Instantly share code, notes, and snippets.

@mattbasta
Created March 27, 2013 23:48
Show Gist options
  • Save mattbasta/5259225 to your computer and use it in GitHub Desktop.
Save mattbasta/5259225 to your computer and use it in GitHub Desktop.
mock(function(patch) {
patch('utils', function() {
return { ... };
});
}, function() {
var foomodule = require('foomodule');
test('foomodule', function(done) {
foomodule.should_not_explode();
done();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment