web-apps/vendor/requirejs/tests/plugins/pluginMap/dynamic/main.js

24 lines
465 B
JavaScript
Raw Normal View History

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