Update Select.mdx (#41205)

* Update Select.mdx

* kick drone
This commit is contained in:
Ashley Harrison
2021-11-02 21:28:13 +00:00
committed by GitHub
parent 8a88caaa71
commit bac6168e62
@@ -148,7 +148,7 @@ it('should call onChange', () => {
const selectEl = screen.getByLabelText('My select');
expect(selectEl).toBeInTheDocument();
await selectEvent.select(selectEl, 'Option 2');
await selectEvent.select(selectEl, 'Option 2', { container: document.body });
expect(onChange).toHaveBeenCalledWith({
label: 'Option 2',
value: 2,