Files
DocumentServer-v-9.2.0/web-apps/vendor/requirejs/tests/mapConfig/built/mapConfigStarAdapter-tests.js
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

50 lines
957 B
JavaScript

define('d',{
name: 'd'
});
define('adapter/d',['d'], function(d) {
d.adapted = true;
return d;
});
define('e',['d'], function (d) {
return {
name: 'e',
d: d
};
});
/*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();
}
);
define("mapConfigStarAdapter-tests", function(){});