forked from requirejs/requirejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircular-tests.js
More file actions
31 lines (30 loc) · 824 Bytes
/
circular-tests.js
File metadata and controls
31 lines (30 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require({
baseUrl: "./"
},
["require", "two", "funcTwo", "funcThree"],
function(require, two, funcTwo, funcThree) {
var args = two.doSomething();
var twoInst = new funcTwo("TWO");
doh.register(
"circular",
[
function circular(t) {
t.is("small", args.size);
t.is("redtwo", args.color);
}
]
);
doh.run();
doh.register(
"circularFunc",
[
function circularFunc(t) {
t.is("TWO", twoInst.name);
t.is("ONE-NESTED", twoInst.oneName());
t.is("THREE-THREE_SUFFIX", funcThree("THREE"));
}
]
);
doh.run();
}
);