Skip to content

Commit

Permalink
Init conformance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Jun 17, 2024
1 parent c4f1888 commit 85dbb07
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/pages/base-ui/api/checkbox-group-label.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"import * as CheckboxGroup from '@base_ui/react/CheckboxGroup';\nconst CheckboxGroupLabel = CheckboxGroup.Label;"
],
"classes": [],
"spread": true,
"themeDefaultProps": true,
"muiName": "CheckboxGroupLabel",
"forwardsRefTo": "HTMLSpanElement",
"filename": "/packages/mui-base/src/CheckboxGroup/Label/CheckboxGroupLabel.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-checkbox-group/\">Checkbox Group</a></li></ul>",
Expand Down
3 changes: 3 additions & 0 deletions docs/pages/base-ui/api/checkbox-group-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"import * as CheckboxGroup from '@base_ui/react/CheckboxGroup';\nconst CheckboxGroupRoot = CheckboxGroup.Root;"
],
"classes": [],
"spread": true,
"themeDefaultProps": true,
"muiName": "CheckboxGroupRoot",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRoot.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-checkbox-group/\">Checkbox Group</a></li></ul>",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as React from 'react';
import { createRenderer } from '@mui/internal-test-utils';
import * as CheckboxGroup from '@base_ui/react/CheckboxGroup';
import { describeConformance } from '../../../test/describeConformance';

describe('<CheckboxGroup.Label />', () => {
const { render } = createRenderer();

describeConformance(<CheckboxGroup.Label />, () => ({
inheritComponent: 'span',
refInstanceof: window.HTMLSpanElement,
render,
}));
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as React from 'react';
import { createRenderer } from '@mui/internal-test-utils';
import * as CheckboxGroup from '@base_ui/react/CheckboxGroup';
import { describeConformance } from '../../../test/describeConformance';

describe('<CheckboxGroup.Root />', () => {
const { render } = createRenderer();

describeConformance(<CheckboxGroup.Root />, () => ({
inheritComponent: 'div',
refInstanceof: window.HTMLDivElement,
render,
}));
});

0 comments on commit 85dbb07

Please sign in to comment.