We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4e3771 commit 9b37debCopy full SHA for 9b37deb
packages/material-ui/src/Checkbox/Checkbox.test.js
@@ -32,6 +32,18 @@ describe('<Checkbox />', () => {
32
expect(typeof classes.disabled).to.equal('string');
33
});
34
35
+ it('renders an unchecked `checkbox` by default', () => {
36
+ const { getByRole } = render(<Checkbox />);
37
+
38
+ expect(getByRole('checkbox')).to.have.property('checked', false);
39
+ });
40
41
+ it('renders an checked `checkbox` when `checked={true}`', () => {
42
+ const { getByRole } = render(<Checkbox checked />);
43
44
+ expect(getByRole('checkbox')).to.have.property('checked', true);
45
46
47
describe('prop: indeterminate', () => {
48
it('should render an indeterminate icon', () => {
49
const { container } = render(<Checkbox indeterminate />);
0 commit comments