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

27 lines
825 B
JavaScript

require.config({
baseUrl: requirejs.isBrowser ? "./" : "./exports/"
});
require(
["require", "vanilla", "funcSet", "assign", "assign2", "usethis",
"implicitModule", "simpleReturn"],
function(require, vanilla, funcSet, assign, assign2, usethis,
implicitModule, simpleReturn) {
doh.register(
"exports",
[
function exports(t){
t.is("vanilla", vanilla.name);
t.is("funcSet", funcSet);
t.is("assign", assign);
t.is("assign2", assign2);
t.is("usethis", usethis.name);
t.is("implicitModule", implicitModule());
t.is("simpleReturn", simpleReturn());
}
]
);
doh.run();
}
);