mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Make modularized builds work in the unit test.
Former-commit-id: 2d56960e70a2f8c16087cc88c66008e766ea8338
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
</script>
|
||||
<script>
|
||||
// store Lo-Dash to test for bad shim detection
|
||||
var lodashBadShim = _;
|
||||
var lodashBadShim = window._;
|
||||
|
||||
// restore nativeKeys
|
||||
Object.keys = Object._keys;
|
||||
@@ -54,12 +54,12 @@
|
||||
(function() {
|
||||
var modulePath = ui.buildPath.replace(/\.js$/, '');
|
||||
return {
|
||||
'baseUrl': './',
|
||||
'baseUrl': '../' + (/modularize/.test(QUnit.urlParams.build) ? 'modularize/' : ''),
|
||||
'urlArgs': 't=' + (+new Date),
|
||||
'paths': {
|
||||
'lodash': '../' + modulePath,
|
||||
'shimmed': '../abc/../' + modulePath,
|
||||
'underscore': '../xyz/../' + modulePath
|
||||
'lodash': modulePath,
|
||||
'shimmed': './abc/../' + modulePath,
|
||||
'underscore': './xyz/../' + modulePath
|
||||
},
|
||||
'aliases': [
|
||||
['shimmed', 'lodash'],
|
||||
|
||||
Reference in New Issue
Block a user