mirror of
https://github.com/documenso/documenso.git
synced 2025-11-18 02:32:00 +10:00
fix: test
This commit is contained in:
@ -7,7 +7,7 @@ import {
|
||||
mapSecondaryIdToTemplateId,
|
||||
} from '@documenso/lib/utils/envelope';
|
||||
import { prisma } from '@documenso/prisma';
|
||||
import { FieldType } from '@documenso/prisma/client';
|
||||
import { DocumentDataType, FieldType } from '@documenso/prisma/client';
|
||||
import {
|
||||
seedBlankDocument,
|
||||
seedCompletedDocument,
|
||||
@ -118,6 +118,15 @@ test.describe('Document Access API V1', () => {
|
||||
createDocumentOptions: { title: 'Document 1 - Completed' },
|
||||
});
|
||||
|
||||
await prisma.documentData.update({
|
||||
where: {
|
||||
id: documentA.envelopeItems[0].documentDataId,
|
||||
},
|
||||
data: {
|
||||
type: DocumentDataType.S3_PATH,
|
||||
},
|
||||
});
|
||||
|
||||
const resA = await request.get(
|
||||
`${WEBAPP_BASE_URL}/api/v1/documents/${mapSecondaryIdToDocumentId(documentA.secondaryId)}/download`,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user