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

40 lines
788 B
JavaScript

define('one', function () {
return { name: 'one' };
});
define('two', function () {
return { name: 'two' };
});
define('three', ['one'], function (one) {
return { name: 'three',
one: one
};
});
require([], function() {
require({
map : {
'*': {
'one': 'two'
}
}
},
['three'],
function (three) {
doh.register(
'mapConfigDelayed',
[
function mapConfigDelayed(t){
t.is('three', three.name);
t.is('two', three.one.name);
}
]
);
doh.run();
}
);
});
define("app", function(){});