mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
8162d052bf
# Checklist for submitter If some of the following don't apply, delete the relevant line. - [ ] Manual QA for all new/changed functionality --------- Co-authored-by: Gabriel Hernandez <ghernandez345@gmail.com>
16 lines
450 B
TypeScript
16 lines
450 B
TypeScript
import React from "react";
|
|
import { render, screen } from "@testing-library/react";
|
|
import BackLink from "./BackLink";
|
|
|
|
describe("BackLink - component", () => {
|
|
it("renders text and icon", () => {
|
|
render(<BackLink text="Back to software" />);
|
|
|
|
const text = screen.getByText("Back to software");
|
|
const icon = screen.getByTestId("chevron-left-icon");
|
|
|
|
expect(text).toBeInTheDocument();
|
|
expect(icon).toBeInTheDocument();
|
|
});
|
|
});
|