@hero-design/rn 8.42.0 → 8.42.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ import Box from '../../../Box';
8
8
  import Button from '../../../Button/Button';
9
9
  import type { ListRenderOptionInfo } from '../../types';
10
10
  import theme, { ThemeProvider } from '../../../../theme';
11
+ import Portal from '../../../Portal';
11
12
 
12
13
  const options = [
13
14
  { text: 'Monday', value: 'mon' },
@@ -156,13 +157,15 @@ describe('rendering', () => {
156
157
  // should rerender UI if values are changed
157
158
  rerender(
158
159
  <ThemeProvider theme={theme}>
159
- <MultiSelect
160
- label="Allow notifications"
161
- footerLabel="Confirm"
162
- options={sections}
163
- value={['a', 'a1']}
164
- onConfirm={jest.fn()}
165
- />
160
+ <Portal.Provider>
161
+ <MultiSelect
162
+ label="Allow notifications"
163
+ footerLabel="Confirm"
164
+ options={sections}
165
+ value={['a', 'a1']}
166
+ onConfirm={jest.fn()}
167
+ />
168
+ </Portal.Provider>
166
169
  </ThemeProvider>
167
170
  );
168
171
  expect(toJSON()).toMatchSnapshot();