(m: ReturnType<typeof createMutators>, tx: any, createSource: string | null)
| 1471 | } |
| 1472 | |
| 1473 | function duplicate(m: ReturnType<typeof createMutators>, tx: any, createSource: string | null) { |
| 1474 | return m.createFile(tx, { |
| 1475 | fileId: newFileId, |
| 1476 | workspaceId: userId, |
| 1477 | name: 'Copy', |
| 1478 | time: Date.now(), |
| 1479 | createSource, |
| 1480 | }) |
| 1481 | } |
| 1482 | |
| 1483 | it('can duplicate a file shared with you', async () => { |
| 1484 | const s = baseStore(makeFile({ id: sourceId, owningGroupId: otherGroup, shared: true })) |
no test coverage detected
searching dependent graphs…