import manifest from "./manifest"; import { alt as openGraphAlt } from "./opengraph-image"; /** * A home se apresenta como "Sites e sistemas que trazem pedidos pelo WhatsApp e tiram a operação da planilha". * O manifesto e a imagem de compartilhamento precisam dizer o mesmo, não o posicionamento antigo ("sistemas sob medida"). */ jest.mock("next/og", () => ({ ImageResponse: jest.fn() })); describe("manifesto do site", () => { it("fala de sites e sistemas, não do posicionamento antigo", () => { const { name, description } = manifest(); expect(name).toMatch(/Sites e sistemas/); expect(description).toMatch(/WhatsApp/); expect(description).toMatch(/planilha/); expect(`${name} ${description}`).not.toMatch(/sob medida/i); }); }); describe("imagem de compartilhamento da home", () => { it("tem o texto alternativo do novo posicionamento", () => { expect(openGraphAlt).toMatch(/Sites e sistemas/); expect(openGraphAlt).not.toMatch(/sob medida/i); }); });