web-apps/vendor/requirejs/tests/mapConfig/mapConfigStarAdapter-tests.js

31 lines
700 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
/*global doh */
require({
baseUrl: './',
map: {
'*': {
'd': 'adapter/d'
},
'adapter/d': {
d: 'd'
}
}
},
['e', 'adapter/d'],
function(e, adapterD) {
'use strict';
doh.register(
'mapConfigStarAdapter',
[
function mapConfigStarAdapter(t){
t.is('e', e.name);
t.is('d', e.d.name);
t.is(true, e.d.adapted);
t.is(true, adapterD.adapted);
t.is('d', adapterD.name);
}
]
);
doh.run();
}
);