Skip to content

Commit

Permalink
Increase code coverage for igCombo
Browse files Browse the repository at this point in the history
  • Loading branch information
dkamburov committed Feb 20, 2019
1 parent c59664b commit 7883126
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/unit/igcombo/combo.spec.ts
Expand Up @@ -196,7 +196,13 @@ export function main() {
fixture.detectChanges();
setTimeout(function () {
expect(fixture.componentInstance.combo.value1).toEqual("foo");
done();
//clear
$("#combo1").parents("ig-combo").find(".ui-igcombo-clearicon").click();
fixture.detectChanges();
setTimeout(function () {
expect(fixture.componentInstance.combo.value1).toBeNull();
done();
}, 10);
}, 10);
}, 100);
});
Expand Down

0 comments on commit 7883126

Please sign in to comment.