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

22 lines
315 B
JavaScript

define('a', {
name: 'a'
});
require(['a', 'b'], function (a, b) {
doh.register(
"requireAsync",
[
function requireAsync(t){
t.is('a', a.name);
t.is('b', b.name);
}
]
);
doh.run();
});
define('b', {
name: 'b'
});