Created
November 21, 2011 17:08
-
-
Save wilsonpage/1383258 to your computer and use it in GitHub Desktop.
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>DOM-shim unit tests</title> | |
<link rel="stylesheet" href="resources/nodeunit.css" type="text/css" /> | |
<script src="resources/es5-shim.js"></script> | |
<script src="resources/nodeunit.js"></script> | |
<script src="../code/my/file"></script> | |
</head> | |
<body> | |
<h1 id="nodeunit-header">DOM-shim unit tests</h1> | |
<script> | |
require([ | |
"moduleA.test.js", | |
"moduleB.test.js" | |
], function () { | |
[].forEach.call(arguments, function (suite) { | |
nodeunit.run(suite); | |
}); | |
} | |
</script> | |
</body> | |
</html> |
This file contains 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'// require the module to test | |
], function(moduleA){ | |
// what goes here? | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment