web-apps/vendor/requirejs/tests/plugins/sync-tests.js

21 lines
604 B
JavaScript
Raw Normal View History

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