From cd9784b59cf889386ef3d903868c8033f39ed83e Mon Sep 17 00:00:00 2001 From: que01 Date: Wed, 23 Sep 2026 01:37:55 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=A1=A5=E5=85=85=E9=97=A8=E7=AA=97?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=A9=BA=E9=97=B4=E5=AD=97=E6=AE=B5=E5=A5=91?= =?UTF-8?q?=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/test/http.integration.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/api/test/http.integration.test.js b/apps/api/test/http.integration.test.js index cf1d1a1..22bce87 100644 --- a/apps/api/test/http.integration.test.js +++ b/apps/api/test/http.integration.test.js @@ -180,6 +180,9 @@ test("admin can install doors industry template through the shared runtime contr body.runtimeCapabilities.map((item) => item.key), ["offerings", "inquiry"], ); + assert.ok(Array.isArray(body.offerings)); + assert.ok(Array.isArray(body.fields)); + assert.ok(body.fields.every((field) => typeof field.key === "string")); } finally { await prisma.brandFieldDefinition.deleteMany({ where: { brandId } }); await prisma.brandModule.deleteMany({ where: { brandId } });