AccountButton done
This commit is contained in:
@@ -5,7 +5,7 @@ import Card from '../src/components/home/Card.jsx';
|
||||
describe('Card Component', () => {
|
||||
it('should render the Card component with the given ID', () => {
|
||||
const testId = '123';
|
||||
render(<Card id={testId} />);
|
||||
render(<Card id={testId} color={"FFA500FF"}/>);
|
||||
|
||||
const cardElement = screen.getByText(/123/i);
|
||||
expect(cardElement).toBeInTheDocument();
|
||||
@@ -13,7 +13,7 @@ describe('Card Component', () => {
|
||||
|
||||
it('should store the ID in local storage when clicked', () => {
|
||||
const testId = '456';
|
||||
render(<Card id={testId} />);
|
||||
render(<Card id={testId} color={"FFA500FF"}/>);
|
||||
|
||||
const cardElement = screen.getByText(/456/i);
|
||||
fireEvent.click(cardElement);
|
||||
|
||||
Reference in New Issue
Block a user