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

19 lines
345 B
JavaScript

require({
packages: [{
name: 'foo',
main: 'lib/index'
}]
}, ['foo'], function (foo) {
doh.register(
'packagesNestedMain',
[
function packagesNestedMain(t){
t.is('foo', foo.name);
t.is('bar', foo.bar.name);
}
]
);
doh.run();
});