1
0
Fork 0

modalview specs added

This commit is contained in:
Heiko Kernbach 2014-05-01 22:33:23 +02:00
parent 44415975bb
commit 7cd6cb1039
1 changed files with 15 additions and 0 deletions

View File

@ -390,5 +390,20 @@
expect(testee.delegateEvents).toHaveBeenCalled();
});
it("should call keyboard bind function", function() {
spyOn(testee, "createModalHotkeys");
testee.enabledHotkey = false;
testee.show("modalTable.ejs", "Delegate Events", undefined, undefined, undefined, undefined);
expect(testee.createModalHotkeys).toHaveBeenCalled();
});
it("should not call keyboard bind function", function() {
spyOn(testee, "createModalHotkeys");
testee.enabledHotkey = true;
testee.show("modalTable.ejs", "Delegate Events", undefined, undefined, undefined, undefined);
expect(testee.createModalHotkeys).not.toHaveBeenCalled();
});
});
}());