FOSDEM-2025-keynote/lib/js/extra/headjs/test/unit/1.0.0/test.conf.js

19 lines
568 B
JavaScript
Raw Permalink Normal View History

module("Conf");
// INFO: Must be last test since it is loading HeadJS while running tests, which in turn already relies on HeadJS
// If run as last test in suite it should be ok, since it shouldn't be a problem if we overwrite HeadJS stuff at the end
// only sync tests use expect()
// http://qunitjs.com/cookbook/#synchronous-callbacks
asyncTest("head_conf", 1, function() {
head_conf = { head: "headJS" };
head.load(libs.head(), function () {
ok(!!headJS, "callback: headJS");
// reset
head = headJS;
start();
});
});