- Add method injectGlobal which injects require() and pwd() in global namespace (window).
- Importing require does not inject require() and pwd() implicitly, instead injectGlobal() must be called.
- pwd and require are now importable consts.
Add a test for __dirname.
Remove unused isGobalModule, isAbsolutePath, isRelativePath and resolvePath.
Tidy: Add semicolon to require;
Renamed pwd() to dirname() (@matthaias)
Current state of test refactoring.
- Tidy: Names of test are now dash-case in hope that this makes them better readable (@matthaias do you agree?)
- Tidy: Test descriptions does not fit to what current test is doing.
Current strange state fo refactoring. I've no idea why the tests are still working. @matthaias it seems like there are still some mysteries to discover :)