web-apps/vendor/requirejs/tests/requireAsync/requireAsync-tests.js

22 lines
315 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
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'
});