Skip to content

Instantly share code, notes, and snippets.

@alivedise
Created February 19, 2013 07:15
Show Gist options
  • Select an option

  • Save alivedise/4983732 to your computer and use it in GitHub Desktop.

Select an option

Save alivedise/4983732 to your computer and use it in GitHub Desktop.
Mocha template
'use strict';
requireApp('system/js/sound_manager.js');
var mocksFor_THIS_MODULE = [''];
mocks_THIS_MODULE.forEach(function(mockName) {
if (! window[mockName]) {
window[mockName] = null;
}
});
suite('MODULE_NAME', function() {
var mocksHelper;
suiteSetup(function() {
mocksHelper = new MocksHelper(mocksFor_THIS_MODULE);
mocksHelper.suiteSetup();
});
suiteTeardown(function() {
mocksHelper.suiteTeardown();
});
setup(function() {
mocksHelper.setup();
});
teardown(function() {
mocksHelper.teardown();
});
test('Test', function() {
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment