Finish making tests runnable for lodash-amd.

This commit is contained in:
John-David Dalton
2013-09-03 23:37:53 -05:00
parent 6ed7ef25b2
commit f462f87183
3 changed files with 35 additions and 14 deletions

View File

@@ -54,7 +54,7 @@
return;
}
var reBasename = /[\w.-]+$/,
basePath = ('//' + location.host + location.pathname).replace(/\btest\/$/, ''),
basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
modulePath = ui.buildPath.replace(/\.js$/, ''),
locationPath = modulePath.replace(reBasename, ''),
moduleMain = modulePath.match(reBasename)[0];