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

24 lines
579 B
JavaScript

require({
bundles: {
'main': ['util', 'main'],
'second': ['other'],
'third': ['third']
}
}, ['util', 'other', 'third'], function (util, other, third) {
require(['main'], function (main) {
doh.register(
'bundles',
[
function bundles(t){
t.is('util', util.name);
t.is('other', other.name);
t.is('third', third.name);
t.is('main', main.name);
}
]
);
doh.run();
});
});