mattfysh / testr.js

Unit testing require.js modules, with both stubbed and script-loaded dependencies. Compatible with all test frameworks - Jasmine, QUnit, JsTestDriver, Buster JS, etc.
159 stars 7 forks source link

documentation states 'baseUrl' is optional but if not provided causes problem #16

Open loesak opened 11 years ago

loesak commented 11 years ago

testr v 1.3.2

line 397: origRequire({baseUrl: config.root + config.baseUrl});

if neither root or baseUrl are provided in config, root defaults to './' and baseUrl defaults to undefined. './' + undefined = './undefined' which is not a satisfactory baseUrl for requirejs.