Skip to content

Commit

Permalink
Merge branch 'main' into Blog
Browse files Browse the repository at this point in the history
  • Loading branch information
zigabe authored Feb 12, 2024
2 parents 5a753dd + 9107c29 commit 7ca353c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/payment-svc/payment-swap-svc.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class PaymentSwapService {
senderId: randomUUID(),
patientId: randomUUID(),
currencyPatientAmount: 100,
currencyPatient: 'CDF',
currencyPatient: 'XOF',
currencyRate: 1.0,
},
},
Expand Down
6 changes: 4 additions & 2 deletions src/modules/provider-svc/provider-svc.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe('ProviderService', () => {
senderCurrency: 'senderCurrency',
amount: 1000,
conversionRate: 1,
currency: 'CDF',
currency: 'XOF',
senderId: 'senderId',
ownerId: 'ownerId',
hospitalId: null,
Expand Down Expand Up @@ -491,7 +491,9 @@ describe('ProviderService', () => {
);
});


it('should throw an error if the voucher currency is not CDF', async () => {

transactionRepository.findOne = jest.fn().mockResolvedValue({ ...mockTransaction, currency: 'USD' });

await expect(
Expand Down Expand Up @@ -522,7 +524,7 @@ describe('ProviderService', () => {
transactionHash: 'hash1',
returnValues: {
'0': 1,
'1': [100, 'CDF', 'ownerId', 'hospitalId', 'patientId', 'UNCLAIMED']
'1': [100, 'XOF', 'ownerId', 'hospitalId', 'patientId', 'UNCLAIMED']
}
}
}
Expand Down

0 comments on commit 7ca353c

Please sign in to comment.