DocumentServer/OfficeWeb/vendor/requirejs/tests/packagesNodeAdapter/packagesNodeAdapter-tests.js
2015-04-28 17:59:00 +03:00

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();
});