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
8dc456e406
commit
dfdbb66a73
11
src/_tests_/categories.test.tsx
Normal file
11
src/_tests_/categories.test.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import React from "react";
|
||||
import { test, expect } from "vitest";
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import "@testing-library/jest-dom";
|
||||
import Categories from "@/layout/header/categories";
|
||||
|
||||
test("renders learn react link", () => {
|
||||
render(<Categories />);
|
||||
const showText = screen.getByText(/software/i);
|
||||
expect(showText).toBeInTheDocument();
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user