/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-styled-engine/src/styled.test.ts
14 строк
448 B
Jan Potoms
[code-infra] Convert @mui/styled-engine to TypeScript (#48544)
22 май 2026, 17:49
Не верифицирован
22 май 2026, 17:49
59e3304
Код
Авторство
О чём код?
import { expect } from 'chai'; import styled from './index'; describe('styled', () => { it('should help debug wrong args', () => { expect(() => { styled('span')(); }).toErrorDev('MUI: Seems like you called `styled("span")()` without a `style` argument'); expect(() => { styled('span')(undefined, { color: 'red' }); }).toErrorDev('MUI: the styled("span")(...args) API requires all its args to be defined'); }); });