⚒️ Category example test.

This commit is contained in:
pheralb 2022-06-28 13:16:21 +01:00
parent a1f872babd
commit f3c2c801e5

View File

@ -1,11 +1,13 @@
import React from "react";
import { test, expect } from "vitest";
import { test, expect, describe } 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();
describe("Categories", () => {
test("renders learn react link", () => {
render(<Categories />);
const showText = screen.getByText(/software/i);
expect(showText).toBeInTheDocument();
});
});