MCPcopy Create free account
hub / github.com/adobe/react-spectrum / wrapper

Function wrapper

packages/react-aria/test/searchfield/useSearchField.test.js:135–139  ·  view source on GitHub ↗
({children})

Source from the content-addressed store, hash-verified

133 it('with a localized aria-label', () => {
134 let locale = 'de-DE';
135 let wrapper = ({children}) => (
136 <Provider locale={locale} theme={theme}>
137 {children}
138 </Provider>
139 );
140 let expectedIntl = intlMessages[locale]['Clear search'];
141 let {clearButtonProps} = renderSearchHook({}, wrapper);
142 expect(clearButtonProps['aria-label']).toBe(expectedIntl);

Callers 8

ProgressCircle.tsxFile · 0.85
RadioGroup.tsxFile · 0.85
Meter.tsxFile · 0.85
StatusLight.tsxFile · 0.85
ProgressBar.tsxFile · 0.85
Breadcrumbs.tsxFile · 0.85
Switch.tsxFile · 0.85
Checkbox.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected