web-apps/vendor/requirejs/tests/nestedRequireConfig/nestedRequireConfig.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

29 lines
623 B
JavaScript

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(){});