Skip to content

Commit

Permalink
chore: update test for simpler formatter mock
Browse files Browse the repository at this point in the history
  • Loading branch information
thekidnamedkd committed Apr 4, 2024
1 parent 6813da1 commit cfb07bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ describe('<AssetTransfer /> component', () => {
formatNumberMock.mockImplementation((value, options) => {
if (options && options.format === NumberFormat.TOKEN_AMOUNT_SHORT) {
return `+${value}`;
} else if (options && value && options.format === NumberFormat.FIAT_TOTAL_SHORT) {
} else if (options && options.format === NumberFormat.FIAT_TOTAL_SHORT) {
const formattedFiatValue = `$${Number(value).toFixed(2)}`;
return formattedFiatValue;
}
return value!.toString();
return null;
});
});

Expand Down

0 comments on commit cfb07bd

Please sign in to comment.