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

19 lines
418 B
JavaScript
Raw Normal View History

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