web-apps/vendor/requirejs/tests/nestedDefine/nestedDefine2.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

25 lines
538 B
JavaScript

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