extractTransferOptions function infrastructure ✓ 100.0%
Last updated: 2026-03-04T23:21:38.388Z
Metrics
LOC: 16
Complexity: 4
Params: 2
Coverage: 100.0% (5/5 lines, 4x executed)
Signature
extractTransferOptions(
wrapper: HTMLElement,
): : Array<{ value: string; text: string }> | undefined
Source Code
function extractTransferOptions(
wrapper: HTMLElement,
): Array<{ value: string; text: string }> | undefined {
const items = wrapper.querySelectorAll<HTMLElement>(
".ant-transfer-list:first-child .ant-transfer-list-content-item-text",
);
const opts = Array.from(items)
.map((item) => ({
value: item.textContent?.trim() ?? "",
text: item.textContent?.trim() ?? "",
}))
.filter((o) => o.text);
return opts.length > 0 ? opts : undefined;
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| buildField | calls |