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

30 lines
500 B
JavaScript

define('lib/b', [], { name: 'b' });
define('b1', [], { name: 'b1' });
define('lib/a', ['./b'], function(b) {
return {
name: 'a',
b: b
};
});
require({
map: {
'lib/a': {
'lib/b': 'b1'
}
}
},['lib/a'], function(a) {
doh.register(
'mapConfigRelative',
[
function mapConfigRelative(t){
t.is('a', a.name);
t.is('b1', a.b.name);
}
]
);
doh.run();
});