Skip to content

Instantly share code, notes, and snippets.

Avatar

Wilson Page wilsonpage

View GitHub Profile
View credit.md

After Ryosuke, Travis, Wilson, William, and I discussed the problem for an hour over a burrito, William came up with this approach. All hail William.

View moduleA.test.js
define(['moduleA.js'], function(ModuleA){
return {
"test1": function (test) {
// run test on ModuleA
},
"test2": function (test) {
// run test on ModuleA
},
View moduleA.test.js
define([/* dependencies */], function(){
nodeunit.run({
"test my module": function (test) {
// run test
}
});