mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-22 04:15:50 +02:00
Add vitest, add json validation tests, fix broken json files (#566)
This commit is contained in:
committed by
GitHub
parent
000f206d90
commit
03be08be63
@@ -0,0 +1,11 @@
|
||||
import { screen } from "@testing-library/dom";
|
||||
import { render } from "@testing-library/react";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import Page from "@/app/page";
|
||||
|
||||
describe("Page", () => {
|
||||
it("should show button to view scripts", () => {
|
||||
render(<Page />);
|
||||
expect(screen.getByRole("button", { name: "View Scripts" })).toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user