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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['moduleA.js'], function(ModuleA){ | |
return { | |
"test1": function (test) { | |
// run test on ModuleA | |
}, | |
"test2": function (test) { | |
// run test on ModuleA | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([/* dependencies */], function(){ | |
nodeunit.run({ | |
"test my module": function (test) { | |
// run test | |
} | |
}); | |