feat(upload): list user-only tasks, show date-time using formatTimeAgo, and use Shadcn Progress

This commit is contained in:
yiling
2026-06-01 11:20:58 +08:00
parent 747efe0358
commit 3bde1c1a82
4 changed files with 8 additions and 21 deletions
+1 -2
View File
@@ -311,7 +311,7 @@ describe('UploadService', () => {
expect(parentFolder?.sizeByte).toBe(3000)
})
it('should list upload tasks and include the creator name as uploaderName', async () => {
it('should list upload tasks', async () => {
const task = await prisma.task.create({
data: {
creatorId: userId,
@@ -326,6 +326,5 @@ describe('UploadService', () => {
expect(result.data).toHaveLength(1)
expect(result.data[0].id).toBe(task.id)
expect(result.data[0].name).toBe('test-upload-task')
expect(result.data[0].uploaderName).toBe('test')
})
})