[Framework] Complete RequireJS configurator tests

Complete tests for the RequireJS configurator, used to
expose libraries beyond bundle boundaries (and, related,
to provide shims for non-AMD libraries.) WTD-568.
This commit is contained in:
Victor Woeltjen
2015-01-02 17:59:45 -08:00
parent 96aaea5e58
commit baca4ab4e6
2 changed files with 37 additions and 3 deletions

View File

@ -26,7 +26,7 @@ define(
// Adjust paths to point to libraries
if (configuration.paths) {
// Don't modify the actual bundle definition...
configuration = configuration.clone(configuration);
configuration = clone(configuration);
// ...replace values in a clone instead.
Object.keys(configuration.paths).forEach(function (path) {
configuration.paths[path] =
@ -47,6 +47,7 @@ define(
base[k][p] = next[k][p];
});
});
return base;
}
// Build a configuration object, to pass to requirejs.config,