feat: 隔离公开工作空间缓存与品牌解析

This commit is contained in:
que01 committed 2026-09-23 08:54:39 +08:00
1 parent ff5dc4e3ba
commit aeb1605a2a
2 files changed
+14 -2

No files matched your search

+2
View File
@@ -61,6 +61,8 @@ test("health and public content are available without authentication", async ()
const bySlug = await request("/public/workspace?brandSlug=default-brand");
assert.equal(bySlug.statusCode, 200);
assert.equal(JSON.parse(bySlug.body).brand.id, brandId);
const missingSlug = await request("/public/workspace?brandSlug=missing-brand");
assert.equal(missingSlug.statusCode, 404);
});
test("public workspace uses brand-scoped capability installations and preserves status", async () => {