feat: primitives (Wordmark, Container, CTA) with tests

This commit is contained in:
erikgh committed 2026-07-21 10:10:14 -06:00
1 parent 48a37395aa
commit 7d12e35600
9 files changed
+98 -2

No files matched your search

@@ -0,0 +1,14 @@
import { render, screen } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import { CTA } from '../CTA';
describe('<CTA />', () => {
it('renders the label with arrow', () => {
render(<CTA href="#contacto" label="Define tu siguiente movimiento" />);
expect(screen.getByRole('link', { name: /define tu siguiente movimiento/i })).toBeInTheDocument();
});
it('uses the href', () => {
render(<CTA href="#contacto" label="x" />);
expect(screen.getByRole('link').getAttribute('href')).toBe('#contacto');
});
});