Hi,
I have a function which opens kendowindow. I am writing a qunit test case to test that particular function whether the particular function is working or not. Please help me with below snippet, where am i going wrong.
Function: addNew: function (e) {
$("[data-Address]").data("kendoWindow").open();
}
Test case:
QUnit.test("address", function (assert) {
var wnd = $("[data-Address]").data("kendoWindow");
var test= wnd.element.is(":hidden");
cart.addNew();
assert.equal($("test", false, "address");
});
plz help me where am I gng wrong.
Thanks in advance.