web-apps/vendor/requirejs/tests/plugins/pluginBundlesSeparateText/pluginBundlesSeparateText-tests.js

22 lines
489 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
require({
paths: {
'text': '../../../../text/text'
},
bundles: {
'main': ['text!template.html']
}
}, ['text!template.html', 'text!second.html'], function (template, secondTemplate) {
doh.register(
'pluginBundlesSeparateText',
[
function pluginBundlesSeparateText(t){
t.is('main template', template);
t.is('second template', secondTemplate);
}
]
);
doh.run();
});