14 lines
482 B
TypeScript
14 lines
482 B
TypeScript
import { renderToStaticMarkup } from "react-dom/server";
|
|
import { describe, expect, it } from "vitest";
|
|
import { SiteFooter } from "./site-footer";
|
|
|
|
describe("SiteFooter", () => {
|
|
it("credits DMG Games with the requested sponsor link", () => {
|
|
const markup = renderToStaticMarkup(<SiteFooter />);
|
|
|
|
expect(markup).toContain("Social Minecraft is sponsored by");
|
|
expect(markup).toContain('href="https://dmg.games"');
|
|
expect(markup).toContain("DMG Games.");
|
|
});
|
|
});
|