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