Skip to content

Commit

Permalink
fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaware committed Oct 18, 2024
1 parent 5179a54 commit 57728d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('<Amount />', () => {
it('should check if formatAmountWithSuffix is returning the right value for humanize decimals and none', () => {
setState({ locale: 'en-IN' });
expect(getAmountByParts({ value: 1000.22, suffix: 'humanize', currency: 'INR' })).toEqual({
compact: 'K',
compact: 'T',
currency: '₹',
integer: '1',
isPrefixSymbol: true,
Expand All @@ -135,7 +135,7 @@ describe('<Amount />', () => {
},
{
type: 'compact',
value: 'K',
value: 'T',
},
],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ describe('<Amount />', () => {
it('should check if formatAmountWithSuffix is returning the right value for humanize decimals and none', () => {
setState({ locale: 'en-IN' });
expect(getAmountByParts({ value: 1000.22, suffix: 'humanize', currency: 'INR' })).toEqual({
compact: 'K',
compact: 'T',
currency: '₹',
integer: '1',
isPrefixSymbol: true,
rawParts: [
{ type: 'currency', value: '₹' },
{ type: 'integer', value: '1' },
{ type: 'compact', value: 'K' },
{ type: 'compact', value: 'T' },
],
});
expect(getAmountByParts({ value: 1000000.0, suffix: 'decimals', currency: 'INR' })).toEqual({
Expand Down

0 comments on commit 57728d8

Please sign in to comment.