Skip to content

Commit

Permalink
mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
nowei committed Nov 21, 2024
1 parent 367efbf commit 6a73951
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions api/src/services/uploads/uploads.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ import {
getUploadsByExpenditureCategory,
getValidUploadsInCurrentPeriod,
sendTreasuryReport,
SubrecipientLambdaPayload,
ProjectLambdaPayload,
CreateArchiveLambdaPayload,
EmailLambdaPayload,
} from './uploads'
import type { StandardScenario } from './uploads.scenarios'
Expand All @@ -42,7 +39,7 @@ jest.mock('src/lib/aws', () => ({
deleteUploadFile: jest.fn(),
s3UploadFilePutSignedUrl: jest.fn(),
getSignedUrl: jest.fn(),
startStepFunctionExecution: jest.fn(),
sendSqsMessage: jest.fn(),
}))
jest.mock('uuid', () => ({
v4: () => '00000000-0000-0000-0000-000000000000',
Expand Down Expand Up @@ -412,7 +409,7 @@ describe('treasury report', () => {
expect(result).toBe(true)
expect(sendSqsMessage).toHaveBeenCalledWith(
'https://sqs.us-east-1.amazon.com/fake_aws_account_key/fake_queue',
emailPayload
input
)
}
)
Expand Down

0 comments on commit 6a73951

Please sign in to comment.