Skip to content

Commit

Permalink
fix: Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia committed Mar 26, 2024
1 parent a9e96ab commit ed2bb62
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/modules/collection/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ describe('when getting the fiat commodity amount', () => {
unitPrice = '10000000000'
})

it('should return 0.00000001', () => {
expect(getFiatGatewayCommodityAmount(unitPrice, items)).toBe(0.00000001)
it('should return 0.00000002', () => {
expect(getFiatGatewayCommodityAmount(unitPrice, items)).toBe(0.00000002)
})
})

Expand All @@ -287,8 +287,8 @@ describe('when getting the fiat commodity amount', () => {
unitPrice = '123456789000000000'
})

it('should return 0.12345679', () => {
expect(getFiatGatewayCommodityAmount(unitPrice, items)).toBe(0.12345679)
it('should return 0.12382716', () => {
expect(getFiatGatewayCommodityAmount(unitPrice, items)).toBe(0.12382716)
})
})

Expand All @@ -298,7 +298,7 @@ describe('when getting the fiat commodity amount', () => {
})

it('should return 1', () => {
expect(getFiatGatewayCommodityAmount(unitPrice, items)).toBe(1)
expect(getFiatGatewayCommodityAmount(unitPrice, items)).toBe(1.003)
})
})
})
Expand All @@ -314,7 +314,7 @@ describe('when getting the fiat commodity amount', () => {
})

it('should return 10', () => {
expect(getFiatGatewayCommodityAmount(unitPrice, items)).toBe(10)
expect(getFiatGatewayCommodityAmount(unitPrice, items)).toBe(10.03)
})
})
})
Expand Down

0 comments on commit ed2bb62

Please sign in to comment.