mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
⚒️ Category example test.
This commit is contained in:
parent
a1f872babd
commit
f3c2c801e5
@ -1,11 +1,13 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { test, expect } from "vitest";
|
import { test, expect, describe } from "vitest";
|
||||||
import { render, screen } from "@testing-library/react";
|
import { render, screen } from "@testing-library/react";
|
||||||
import "@testing-library/jest-dom";
|
import "@testing-library/jest-dom";
|
||||||
import Categories from "@/layout/header/categories";
|
import Categories from "@/layout/header/categories";
|
||||||
|
|
||||||
test("renders learn react link", () => {
|
describe("Categories", () => {
|
||||||
render(<Categories />);
|
test("renders learn react link", () => {
|
||||||
const showText = screen.getByText(/software/i);
|
render(<Categories />);
|
||||||
expect(showText).toBeInTheDocument();
|
const showText = screen.getByText(/software/i);
|
||||||
|
expect(showText).toBeInTheDocument();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user