web-apps/vendor/requirejs/tests/nestedRequireConfig/nestedRequireConfig.js

29 lines
623 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
define('components/one/One', ['jquery'], function () {
return {
name: 'One'
};
});
require([], function () {
require({
paths : {
'jquery' : 'http://code.jquery.com/jquery-1.7.2.min'
}
},
[
'components/one/One'
], function (One) {
doh.register(
"nestedRequireConfig",
[
function nestedRequireConfig(t){
t.is('One', One.name);
t.is(true, !!jQuery);
}
]
);
doh.run();
});
});
define("nestedRequireConfig", function(){});