web-apps/vendor/requirejs/tests/exports/exports-tests.js

27 lines
825 B
JavaScript
Raw Normal View History

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