Skip to content

Commit

Permalink
improved frontend tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cearps committed Oct 8, 2024
1 parent 08e0aa7 commit 0b9e065
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/test/components/tutorials/baseTutorial.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { render } from "@testing-library/react";
import { BaseTutorial } from "../../../src/components/tutorials/baseTutorial";

describe("BaseTutorial", () => {
it("renders without errors", () => {
render(<BaseTutorial steps={[]} />);
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { KanbanDisplayTutorialNoTask } from "../../../src/components/tutorials/kanbanDisplayTutorial";
import { render } from "@testing-library/react";

describe("KanbanDisplayTutorialNoTask", () => {
it("renders without errors", () => {
render(<KanbanDisplayTutorialNoTask />);
});
});
17 changes: 17 additions & 0 deletions frontend/test/components/tutorials/kanbanListTutorial.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {
KanbanListTutorialFirstBoard,
KanbanListTutorialNoBoard,
} from "../../../src/components/tutorials/kanbanListTutorial";
import { render } from "@testing-library/react";

describe("KanbanListTutorialFirstBoard", () => {
it("renders without errors", () => {
render(<KanbanListTutorialFirstBoard />);
});
});

describe("KanbanListTutorialNoBoard", () => {
it("renders without errors", () => {
render(<KanbanListTutorialNoBoard />);
});
});

0 comments on commit 0b9e065

Please sign in to comment.