File: test.conf.js

package info (click to toggle)
node-headjs 1.0.3%2Bdfsg.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,884 kB
  • sloc: xml: 33; sh: 14; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 568 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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();
    });
});