test: add component tests
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import PanelBar from "$components/layout/PanelBar.svelte";
|
||||
import { render } from "@testing-library/svelte";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
describe("PanelBar.svelte", () => {
|
||||
it("should render without crashing", () => {
|
||||
const { container } = render(PanelBar);
|
||||
expect(container).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("should have panel-bar class", () => {
|
||||
const { container } = render(PanelBar);
|
||||
const panelBar = container.querySelector(".panel-bar");
|
||||
expect(panelBar).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user