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

24 lines
579 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
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();
});
});