/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/DialogContentText/DialogContentText.test.js
28 строк
898 B
Zeeshan Tamboli
[test] Remove `componentsProp` from `describeConformance` tests (#48142)
30 мар 2026, 10:17
Не верифицирован
30 мар 2026, 10:17
f6db10a
Код
Авторство
О чём код?
import { createRenderer, screen } from '@mui/internal-test-utils'; import Typography from '@mui/material/Typography'; import DialogContentText, { dialogContentTextClasses as classes, } from '@mui/material/DialogContentText'; import describeConformance from '../../test/describeConformance'; describe('<DialogContentText />', () => { const { render } = createRenderer(); describeConformance(<DialogContentText>foo</DialogContentText>, () => ({ classes, inheritComponent: Typography, render, muiName: 'MuiDialogContentText', refInstanceof: window.HTMLParagraphElement, skip: ['themeVariants'], })); describe('prop: children', () => { it('should render children', () => { const children = <span data-testid="test-children" />; render(<DialogContentText>{children}</DialogContentText>); screen.getByTestId('test-children'); }); }); });