MCPcopy Create free account
hub / github.com/react-component/select / genOpts

Function genOpts

tests/Select.test.tsx:116–128  ·  view source on GitHub ↗
(OptLabelName, groupLabel)

Source from the content-addressed store, hash-verified

114 it('should support fieldName', () => {
115 // groupLabel > fieldNames > self-label
116 function genOpts(OptLabelName, groupLabel) {
117 return [
118 {
119 [groupLabel]: 'groupLabel',
120 options: [
121 {
122 value: 'value',
123 [OptLabelName]: 'label',
124 },
125 ],
126 },
127 ];
128 }
129
130 const { container: containerFirst } = testingRender(
131 <Select

Callers 1

Select.test.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…