feat(servicos): topo, entregáveis e cases por serviço, assunto próprio no WhatsApp e títulos curtos

This commit is contained in:
Evandro Fonseca Junior committed 2026-10-14 22:54:18 -03:00
1 parent cf360041bd
commit 2fd8b063d9
33 files changed
+1578 -300

No files matched your search

+5 -5
View File
@@ -7,7 +7,7 @@
* Os dados reais só têm os quatro clientes da lista; o caminho do cliente fora da lista só existe aqui.
*/
const LISTED = ["lavacao-047", "sc-plus", "as-servicos", "sev-modaintima"];
const LISTED = ["sev-modaintima", "lavacao-047", "sc-plus", "as-servicos"];
function loadWithClients(clientIds: readonly string[] | "all") {
let loaded: typeof import("./site-content") | undefined;
@@ -25,14 +25,14 @@ function loadWithClients(clientIds: readonly string[] | "all") {
}
describe("clientCasesForListing: ordem", () => {
it("path: only listed clients -> the fixed order, the SEV last, whatever order the cases come in", () => {
it("path: only listed clients -> the fixed order, the SEV first, whatever order the cases come in", () => {
const { clientCasesForListing, clientCases } = loadWithClients(LISTED);
expect(clientCasesForListing.map(({ id }) => id)).toEqual(LISTED);
expect(clientCasesForListing).toHaveLength(clientCases.length);
});
it("path: a client that is not in the order list -> goes after all the listed ones, the SEV included", () => {
it("path: a client that is not in the order list -> goes after all the listed ones", () => {
const { clientCasesForListing, caseStudies } = loadWithClients([
...LISTED,
"gcc-installer",
@@ -67,11 +67,11 @@ describe("clientCasesForListing: ordem", () => {
expect(clientCasesForListing).toEqual([]);
});
it("path: the real data -> the SEV is the last client, as the mosaic and /cases expect", () => {
it("path: the real data -> the SEV is the first client, as in the home showcase", () => {
jest.resetModules();
const { clientCasesForListing } =
jest.requireActual<typeof import("./site-content")>("./site-content");
expect(clientCasesForListing.at(-1)?.id).toBe("sev-modaintima");
expect(clientCasesForListing[0]?.id).toBe("sev-modaintima");
});
});