BS-001 Initialize BortStack foundation and project workflow
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import { MemoryRouter } from "react-router-dom";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import Footer from "./Footer";
|
||||
|
||||
describe("Footer", () => {
|
||||
it("links the developer logo to the configured developer website", () => {
|
||||
render(<MemoryRouter><Footer /></MemoryRouter>);
|
||||
|
||||
const developerLink = screen.getByRole("link", {
|
||||
name: "Visit roborto.net, developer website",
|
||||
});
|
||||
expect(developerLink).toHaveAttribute("href", "https://roborto.net/");
|
||||
expect(screen.getByRole("img", { name: "roborto.net" }))
|
||||
.toHaveAttribute("src", "/developer-logo.svg");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user