web-apps/vendor/requirejs/tests/plugins/pluginMap/dynamic/main.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

24 lines
465 B
JavaScript

require({
map: {
'*': {
'person': 'employee'
},
'employee': {
'person': 'person'
}
}
}, ['application'], function (application) {
doh.register(
'pluginMapDynamic',
[
function pluginMapDynamic(t){
t.is('application', application.name);
t.is('employed person', application.person.name);
}
]
);
doh.run();
});