web-apps/vendor/requirejs/tests/plugins/sync-tests.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

21 lines
604 B
JavaScript

require({
baseUrl: requirejs.isBrowser ? "./" : "./plugins/"
}, ['require', 'earth', 'prime/earth'],
function (require, earth, primeEarth) {
doh.register(
"pluginsSync",
[
function pluginsSync(t){
t.is("a", earth.getA().name);
t.is("c", earth.getC().name);
t.is("b", earth.getB().name);
t.is("aPrime", primeEarth.getA().name);
t.is("cPrime", primeEarth.getC().name);
t.is("bPrime", primeEarth.getB().name);
}
]
);
doh.run();
});