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

21 lines
348 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
require.config({
config: {
foo: {
related: 'bar'
}
}
});
require(["foo"], function (foo) {
doh.register(
"specialDeps",
[
function specialDeps(t) {
t.is("foo", foo.name);
t.is("bar", foo.related);
}
]
);
doh.run();
});