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

Function wrapper

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

Source from the content-addressed store, hash-verified

138 it('with a localized aria-label', () => {
139 let locale = 'de-DE';
140 let wrapper = ({children}) => (
141 <Provider locale={locale} theme={theme}>
142 {children}
143 </Provider>
144 );
145 let expectedIntl = intlMessages[locale]['Clear search'];
146 let {clearButtonProps} = renderSearchHook({}, wrapper);
147 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