refactor: remove obsolete project mode

This commit is contained in:
saturn
2026-03-25 15:39:16 +08:00
parent fd8f5f8635
commit ca5d8a58f7
47 changed files with 40 additions and 157 deletions

View File

@@ -28,7 +28,6 @@ const prismaMock = vi.hoisted(() => ({
id: 'project-1',
name: 'Test Project',
description: null,
mode: 'novel-promotion',
userId: 'user-1',
})),
},
@@ -60,6 +59,13 @@ describe('api specific - project create default audio model', () => {
const res = await mod.POST(req, routeContext)
expect(res.status).toBe(201)
expect(prismaMock.project.create).toHaveBeenCalledWith({
data: {
name: 'Test Project',
description: null,
userId: 'user-1',
},
})
expect(prismaMock.novelPromotionProject.create).toHaveBeenCalledWith({
data: expect.objectContaining({
projectId: 'project-1',