| 52 | |
| 53 | let Switch = comp === 'SwitchField' ? SwitchExample : SwitchLegacy; |
| 54 | let findRoot = el => |
| 55 | comp === 'SwitchField' ? el.closest('label').parentElement : el.closest('label'); |
| 56 | |
| 57 | it('should render a s with default class', () => { |
| 58 | let {getByRole} = render(<Switch>Test</Switch>); |