fix: 收口模板主模板策略与提供项响应契约
This commit is contained in:
1 parent
7e83d16cc9
commit
4470302b3f
2 files changed
+23
-6
No files matched your search
@@ -71,6 +71,12 @@ test("admin can install a template and public workspace exposes enabled configur
|
||||
const publicWorkspace = await request("/public/workspace");
|
||||
assert.equal(publicWorkspace.statusCode, 200);
|
||||
assert.equal(JSON.parse(publicWorkspace.body).modules.length, 4);
|
||||
const conflict = await request("/admin/workspace/install", {
|
||||
method: "POST",
|
||||
headers: { authorization: `Bearer ${token}` },
|
||||
payload: { templateKey: "food" },
|
||||
});
|
||||
assert.equal(conflict.statusCode, 400);
|
||||
} finally {
|
||||
await prisma.brandFieldDefinition.deleteMany({ where: { brandId } });
|
||||
await prisma.brandModule.deleteMany({ where: { brandId } });
|
||||
|
||||
Reference in new issue
Block a user