Exemple #1
0
 it("returns undefined if not in a root", () => {
   assert.isUndefined(findRoot(defined($root.parent()[0])));
 });
Exemple #2
0
 it("marks the root", () => {
   assert.equal(findRoot(root), rootObj);
 });
Exemple #3
0
 it("finds the root", () => {
   assert.equal(findRoot(defined($(".p")[0])), rootObj);
 });