Skip to content

Commit

Permalink
fixing setVisibleRows test
Browse files Browse the repository at this point in the history
  • Loading branch information
sokomari committed Dec 24, 2024
1 parent ef16ccc commit e7a43b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/autocomplete/popup_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ module.exports = {
popup.renderer.updateFull(true);
// We add one more element to the DOM
assert.strictEqual(popup.getDataContainer().children.length, 5);
assert.strictEqual(Math.floor(popup.container.clientHeight / lineHeight), 4);

popup.setVisibleRows(1);
popup.renderer.updateFull(true);
assert.strictEqual(popup.getDataContainer().children.length, 2);
},
"test: getDataContainer returns element with the popup data": function() {
setupPopup();
Expand Down

0 comments on commit e7a43b6

Please sign in to comment.