Skip to content

Commit ee1f42b

Browse files
committed
Fixed test
1 parent de9898a commit ee1f42b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/ChromeBrowser/__test__/ChromeBrowser.test.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
import { render, screen } from "@testing-library/react";
33
import React from "react";
44
import { describe, expect, it } from "vitest";
5+
import ChromeBrowser from "../ChromeBrowser"; // Import the ChromeBrowser component
56

67
describe("ChromeBrowser component", () => {
78
it("ChromeBrowser should render correctly", () => {
89
render(<ChromeBrowser />);
9-
const ChromeBrowser = screen.getByRole("ChromeBrowser");
10-
expect(ChromeBrowser).toBeInTheDocument();
10+
const chromeBrowserElement = screen.getByRole("ChromeBrowser"); // Declare the chromeBrowserElement variable
11+
expect(chromeBrowserElement).toBeTruthy(); // Use the correct assertion method
1112
});
1213
});

0 commit comments

Comments
 (0)