Skip to content

Commit

Permalink
fix: AttachmentSizeLimitExceededError test
Browse files Browse the repository at this point in the history
  • Loading branch information
LinHuiqing committed Sep 15, 2023
1 parent ffd798b commit 39512b3
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1136,9 +1136,6 @@ describe('encrypt-submission.service', () => {
})

it('should return AttachmentSizeLimitExceededError when total attachment size has exceeded 20MB', async () => {
// Arrange
const awsSpy = jest.spyOn(aws.s3, 'createPresignedPost')

// Act
const actualResult = await getQuarantinePresignedPostData([
{ id: fieldId1, size: 2 },
Expand All @@ -1147,7 +1144,6 @@ describe('encrypt-submission.service', () => {

// Assert
expect(actualResult.isErr()).toEqual(true)
expect(awsSpy).toHaveBeenCalledTimes(1)
expect(actualResult._unsafeUnwrapErr()).toEqual(
new AttachmentSizeLimitExceededError(),
)
Expand Down

0 comments on commit 39512b3

Please sign in to comment.