mirror of
https://github.com/pezkuwichain/pezkuwi-p2p-mobile.git
synced 2026-04-29 20:38:04 +00:00
bc7ab9b2a4
- Copy P2P components from pwap/web - Mobile-optimized P2P trading interface - To be deployed at telegram.pezkuwichain.io/p2p
14 lines
432 B
TypeScript
14 lines
432 B
TypeScript
import { render, screen } from '@testing-library/react';
|
|
import { describe, it, expect } from 'vitest';
|
|
import { Badge } from './badge';
|
|
|
|
describe('Badge Component', () => {
|
|
it('should render the badge with the correct text', () => {
|
|
const testMessage = 'Hello, World!';
|
|
render(<Badge>{testMessage}</Badge>);
|
|
|
|
const badgeElement = screen.getByText(testMessage);
|
|
expect(badgeElement).toBeInTheDocument();
|
|
});
|
|
});
|