web-apps/vendor/requirejs/tests/nestedDefine/nestedDefine2.js

25 lines
538 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
require(['one'], function (one) {
define('nested', ['two'], function (two) {
return {
name: 'nested',
two: two
};
});
require(['nested'], function (nested) {
doh.register(
"nestedDefine2",
[
function nestedDefine2(t) {
t.is("one", one.name);
t.is("two", nested.two.name);
t.is("nested", nested.name);
}
]
);
doh.run();
});
});