Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
EnhancedJax committed Jul 5, 2024
1 parent de9898a commit ee1f42b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ChromeBrowser/__test__/ChromeBrowser.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
import { render, screen } from "@testing-library/react";
import React from "react";
import { describe, expect, it } from "vitest";
import ChromeBrowser from "../ChromeBrowser"; // Import the ChromeBrowser component

describe("ChromeBrowser component", () => {
it("ChromeBrowser should render correctly", () => {
render(<ChromeBrowser />);
const ChromeBrowser = screen.getByRole("ChromeBrowser");
expect(ChromeBrowser).toBeInTheDocument();
const chromeBrowserElement = screen.getByRole("ChromeBrowser"); // Declare the chromeBrowserElement variable
expect(chromeBrowserElement).toBeTruthy(); // Use the correct assertion method
});
});

0 comments on commit ee1f42b

Please sign in to comment.