19 lines
418 B
JavaScript
19 lines
418 B
JavaScript
require({
|
|
nodeIdCompat: true,
|
|
baseUrl: 'node_modules'
|
|
}, ['foo'], function (foo) {
|
|
|
|
doh.register(
|
|
'packagesNodeAdapter',
|
|
[
|
|
function packagesNodeAdapter(t){
|
|
t.is('foo', foo.name);
|
|
t.is('bar', foo.bar.name);
|
|
t.is('baz', foo.baz.name);
|
|
t.is('bar', foo.baz.bar.name);
|
|
}
|
|
]
|
|
);
|
|
doh.run();
|
|
});
|