17 lines
613 B
TypeScript
17 lines
613 B
TypeScript
import { render } from '@testing-library/react';
|
|
import { describe, it, expect } from 'vitest';
|
|
import { FraseAncla } from '../FraseAncla';
|
|
|
|
describe('<FraseAncla />', () => {
|
|
it('renders the anchor quote', () => {
|
|
const { container } = render(<FraseAncla />);
|
|
expect(container.textContent).toMatch(/Las empresas no dejan de crecer/i);
|
|
expect(container.textContent).toMatch(/falta de claridad/i);
|
|
});
|
|
|
|
it('resolves the brand metaphor into the mark', () => {
|
|
const { container } = render(<FraseAncla />);
|
|
expect(container.querySelectorAll('[data-resolucion]')).toHaveLength(3);
|
|
});
|
|
});
|