21 lines
604 B
JavaScript
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();
|
||
|
});
|