Jakobo/inject — Issue #44: Finish Modules 1.1 Tests
Author: Jakobo
Created: 2011-12-05 21:16:12+00:00
State: open

The Modules 1.1 Tests need to have the following validation steps added

http://wiki.commonjs.org/wiki/Modules/1.1

1. in a module, require() is a function
2. requrie() returns the exports{} of the module (already validated)
3. require() for an invalid module ID throws an error
4. require.main property (can this be skipped in QUnit, if not then omit)
5. require.paths property (can this be skipped, if not then omit)
6. module contains a variable exports{} which is an object literal
7. module must have a variable exposed called "module"{}
8. the "module" variable must have an "id" property set to the module identifier
9. the "module" variable has a "uri" property which is the URL of retrieval