DocumentServer/OfficeWeb/vendor/requirejs/tests/plugins/pluginMap/dynamic/main.js
2015-04-28 17:59:00 +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();
});