mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Fix test runner with phantomjs and dojo loader.
This commit is contained in:
8
vendor/qunit-clib/qunit-clib.js
vendored
8
vendor/qunit-clib/qunit-clib.js
vendored
@@ -276,9 +276,11 @@
|
||||
context[methodName] = QUnit[methodName];
|
||||
});
|
||||
|
||||
// must call `QUnit.start()` in the test file if using QUnit < 1.3.0 with
|
||||
// Node.js or any version of QUnit with Narwhal, PhantomJS, Rhino, or RingoJS
|
||||
QUnit.init();
|
||||
// must call `QUnit.start()` in the test file if not loaded in a browser
|
||||
if (!context.document || context.phantom) {
|
||||
QUnit.config.autostart = false;
|
||||
QUnit.init();
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user