Jakobo/inject — Issue #43: Finish Modules 1.0 Tests
Author: Jakobo
Created: 2011-12-05 21:11:56+00:00
State: open
Labels: CommonJS Compliance

The 1.0 Tests cover the basic implementation. The program runs successfully, the following internal tests should be added

1. test existence of "require" inside of a module and that it is a function
2. require() works with a string, throws an error with anything else
3. require() returns an export (this is already validated by math.js)
4. require() with invalid module id throws an error
5. in module, exports{} exists and is an object