* chore: fix a misleading test * chore: add gitignored file to prettier ignore * chore: add getSelectRichMembers test helpers * feat(select-rich): export getSelectRichMembers test helper --------- Co-authored-by: ByoungYong Kim <9986886+ryubro@users.noreply.github.com> Co-authored-by: gerjanvangeest <Gerjan.van.Geest@ing.com>
18 lines
473 B
JavaScript
18 lines
473 B
JavaScript
import { getListboxMembers } from '@lion/ui/listbox-test-helpers.js';
|
|
|
|
/**
|
|
* @typedef {import('../src/LionSelectRich.js').LionSelectRich} LionSelectRich
|
|
*/
|
|
|
|
/**
|
|
* @param { LionSelectRich } el
|
|
*/
|
|
export function getSelectRichMembers(el) {
|
|
const obj = getListboxMembers(el);
|
|
// eslint-disable-next-line no-return-assign
|
|
return {
|
|
...obj,
|
|
// @ts-ignore [allow-protected] in test
|
|
...{ _invokerNode: el._invokerNode, _overlayCtrl: el._overlayCtrl },
|
|
};
|
|
}
|