web-apps/vendor/requirejs/tests/packagesNodeAdapter/packagesNodeAdapter-tests.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -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();
});