Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,22 @@ describe('ReportUIFeatures', () => {
createDiv = () => dom.document().createElement('div');
});

it('should return undefined when nodes is empty', () => {
const nodes = [];

const nextNode = dropDown._getNextSelectableNode(nodes);

assert.strictEqual(nextNode, undefined);
});

it('should return the only node when start is defined', () => {
const node = createDiv();

const nextNode = dropDown._getNextSelectableNode([node], node);

assert.strictEqual(nextNode, node);
});

it('should return first node when start is undefined', () => {
const nodes = [createDiv(), createDiv()];

Expand Down