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

19 lines
345 B
JavaScript
Raw Normal View History

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