diff --git a/packages/material-ui/src/Checkbox/Checkbox.test.js b/packages/material-ui/src/Checkbox/Checkbox.test.js
index a4b488bcbeddf1..a20afe9d7b8824 100644
--- a/packages/material-ui/src/Checkbox/Checkbox.test.js
+++ b/packages/material-ui/src/Checkbox/Checkbox.test.js
@@ -7,7 +7,6 @@ import Checkbox from './Checkbox';
import FormControl from '../FormControl';
import IconButton from '../IconButton';
-
describe('', () => {
const render = createClientRender();
let classes;
diff --git a/packages/material-ui/src/Switch/Switch.test.js b/packages/material-ui/src/Switch/Switch.test.js
index 01531dfe29f043..425e1d02eee505 100644
--- a/packages/material-ui/src/Switch/Switch.test.js
+++ b/packages/material-ui/src/Switch/Switch.test.js
@@ -3,6 +3,7 @@ import { expect } from 'chai';
import { createMount, getClasses } from '@material-ui/core/test-utils';
import describeConformance from '../test-utils/describeConformance';
import { createClientRender, fireEvent } from 'test/utils/createClientRender';
+import FormControl from '../FormControl';
import Switch from './Switch';
describe('', () => {
@@ -87,4 +88,50 @@ describe('', () => {
expect(getByRole('checkbox')).to.have.property('checked', false);
});
+
+ describe('with FormControl', () => {
+ describe('enabled', () => {
+ it('should not have the disabled class', () => {
+ const { getByTestId } = render(
+
+
+ ,
+ );
+
+ expect(getByTestId('root')).not.to.have.class(classes.disabled);
+ });
+
+ it('should be overridden by props', () => {
+ const { getByTestId } = render(
+
+
+ ,
+ );
+
+ expect(getByTestId('root')).to.have.class(classes.disabled);
+ });
+ });
+
+ describe('disabled', () => {
+ it('should have the disabled class', () => {
+ const { getByTestId } = render(
+
+
+ ,
+ );
+
+ expect(getByTestId('root')).to.have.class(classes.disabled);
+ });
+
+ it('should be overridden by props', () => {
+ const { getByTestId } = render(
+
+
+ ,
+ );
+
+ expect(getByTestId('root')).not.to.have.class(classes.disabled);
+ });
+ });
+ });
});