From cb53784ec31cdb9773deb5d919417037828196cd Mon Sep 17 00:00:00 2001 From: "Sven (AAMOS AI)" Date: Tue, 11 Aug 2026 19:19:55 +0700 Subject: [PATCH] =?UTF-8?q?test(eoc-push):=20anv=C3=A4nd=20BRAND.name=20is?= =?UTF-8?q?t=C3=A4llet=20f=C3=B6r=20h=C3=A5rdkodat=20Cibello?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/worker/test/eoc-push.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/worker/test/eoc-push.test.ts b/apps/worker/test/eoc-push.test.ts index c7ee62f..155c798 100644 --- a/apps/worker/test/eoc-push.test.ts +++ b/apps/worker/test/eoc-push.test.ts @@ -1,5 +1,6 @@ import { describe, expect, it, beforeAll, afterAll, vi } from "vitest"; import IORedis from "ioredis"; +import BRAND from "../../../../brand.config.json" with { type: "json" }; import { pushOpsSummaryToEoc } from "../src/processors/eoc-push.js"; const redis = new IORedis(process.env.REDIS_URL ?? "redis://localhost:6379", { @@ -121,7 +122,7 @@ describe("pushOpsSummaryToEoc", () => { const init = fetchMock.mock.calls[0][1] as RequestInit; const body = JSON.parse(init.body as string); const board = body.wall.boards[0]; - expect(board.title).toBe("Cibello Overview"); + expect(board.title).toBe(`${BRAND.name} Overview`); expect(board.title).not.toMatch(/\{brand\}/); const tones = board.tiles.map((t: { tone?: string }) => t.tone);