/
ai_sampletext
/
DiplomWork
Обзор
Документация
Войти
/
ai_sampletext
/
DiplomWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/react-day-picker/src/components/IconLeft/IconLeft.test.tsx
18 строк
445 B
boolyshareyo
Initial commit
08 июн 2026, 16:00
08 июн 2026, 16:00
6216a29
Код
Авторство
О чём код?
import { customRender } from 'test/render'; import { IconLeft } from './IconLeft'; let root: HTMLElement; beforeEach(() => { const view = customRender( <IconLeft className="foo" style={{ color: 'red' }} /> ); root = view.container.firstChild as HTMLElement; }); test('should add the class name', () => { expect(root).toHaveClass('foo'); }); test('should apply the style', () => { expect(root).toHaveStyle({ color: 'red' }); });