feat(disciplinas): tres hebras que confluyen en una estrategia
This commit is contained in:
1 parent
ca949f35c2
commit
3cb2b1f78b
3 files changed
+68
-2
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { render } from '@testing-library/react';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { IlustracionConvergencia } from '../IlustracionConvergencia';
|
||||
|
||||
describe('<IlustracionConvergencia />', () => {
|
||||
it('is decorative: hidden from assistive tech', () => {
|
||||
const { container } = render(<IlustracionConvergencia />);
|
||||
const svg = container.querySelector('svg');
|
||||
expect(svg).toHaveAttribute('aria-hidden', 'true');
|
||||
expect(svg).toHaveAttribute('focusable', 'false');
|
||||
});
|
||||
|
||||
it('draws one strand per discipline plus the strategy they serve', () => {
|
||||
const { container } = render(<IlustracionConvergencia />);
|
||||
expect(container.querySelectorAll('path')).toHaveLength(4);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user