mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-05 15:44:28 +00:00
fix(asset): fix type error in asset.test.ts
This commit is contained in:
@@ -2,7 +2,7 @@ import { describe, expect, it, vi, beforeEach, afterEach } from 'vitest'
|
|||||||
import { prisma } from '@/db'
|
import { prisma } from '@/db'
|
||||||
import { setupTestDbHooks } from '@/db-test-hooks'
|
import { setupTestDbHooks } from '@/db-test-hooks'
|
||||||
|
|
||||||
import { AssetType } from '@/generated/prisma/client.ts'
|
import { AssetType, AssetStatus } from '@/generated/prisma/client.ts'
|
||||||
import { AssetService } from './asset'
|
import { AssetService } from './asset'
|
||||||
|
|
||||||
vi.mock('@/services/s3/s3', () => ({
|
vi.mock('@/services/s3/s3', () => ({
|
||||||
@@ -1197,7 +1197,7 @@ describe('AssetService', () => {
|
|||||||
const childData = Array.from({ length: childCount }).map((_, i) => ({
|
const childData = Array.from({ length: childCount }).map((_, i) => ({
|
||||||
name: `File ${i}`,
|
name: `File ${i}`,
|
||||||
type: AssetType.file,
|
type: AssetType.file,
|
||||||
status: 'pending_purge',
|
status: AssetStatus.pending_purge,
|
||||||
isDeleted: true,
|
isDeleted: true,
|
||||||
projectId: project.id,
|
projectId: project.id,
|
||||||
parentId: folderA.id,
|
parentId: folderA.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user