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

21 lines
348 B
JavaScript

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();
});