Skip to content

Commit

Permalink
Add test for Switch with type submit
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-mp committed Feb 15, 2023
1 parent ae63782 commit ffde56d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/mui-material/src/Switch/Switch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ describe('<Switch />', () => {
expect(getByRole('checkbox')).to.have.property('checked', false);
});

it('should not show warnings when custom `type` is provided', () => {
expect(() => render(<Switch type="submit" />)).not.toErrorDev();
});

describe('with FormControl', () => {
describe('enabled', () => {
it('should not have the disabled class', () => {
Expand Down

0 comments on commit ffde56d

Please sign in to comment.