Fix bug in #_setHighlightedRowsCallback() test

This commit is contained in:
Dan Stillman 2024-06-24 04:42:47 -04:00
parent 4ca92adb89
commit 38b0b3a69a

View file

@ -28,7 +28,7 @@ describe("ZoteroPane", function() {
var spy = sinon.spy(zp.collectionsView, 'setHighlightedRows');
await zp._setHighlightedRowsCallback();
assert.sameMembers(spy.getCall(0).args[0], ['C1']);
assert.sameMembers(spy.getCall(0).args[0], [collection1.treeViewID]);
var rows = win.document.querySelectorAll('.highlighted');
assert.lengthOf(rows, 1);