Files
DocumentServer-v-9.2.0/web-apps/vendor/requirejs/tests/plugins/fromText/fromTextConfig-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

39 lines
831 B
JavaScript

require({
baseUrl: requirejs.isBrowser ? './' : './plugins/fromText',
paths: {
'text': '../../../../text/text'
},
config: {
'refine!b': {
color: 'blue'
},
'refine!c': {
color: 'cyan'
}
}
});
//The refine plugin changes the word refine into define.
define('refine!c', function (require, exports, module) {
return {
name: 'c',
color: module.config().color
};
});
require(['refine!b', 'refine!c'], function (b, c) {
doh.register(
'pluginsFromTextConfig',
[
function pluginsFromTextConfig(t){
t.is('b', b.name);
t.is('blue', b.color);
t.is('c', c.name);
t.is('cyan', c.color);
}
]
);
doh.run();
});