Skip to content

Commit

Permalink
Merge pull request #36323 from ruben-rebelo/ts-migration/unit-payment…
Browse files Browse the repository at this point in the history
…utils

[TS migration] Migrate PaymentUtilsTest to Typescript
  • Loading branch information
yuwenmemon authored Feb 22, 2024
2 parents 0a2ece8 + ba85bc6 commit a868c1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/unit/PaymentUtilsTest.js

This file was deleted.

8 changes: 8 additions & 0 deletions tests/unit/PaymentUtilsTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import CONST from '@src/CONST';
import {calculateWalletTransferBalanceFee} from '@src/libs/PaymentUtils';

describe('PaymentUtils', () => {
it('Test rounding wallet transfer instant fee', () => {
expect(calculateWalletTransferBalanceFee(2100, CONST.WALLET.TRANSFER_METHOD_TYPE.INSTANT)).toBe(32);
});
});

0 comments on commit a868c1a

Please sign in to comment.