19 lines
345 B
JavaScript
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();
|
||
|
});
|