Skip to content

Commit

Permalink
test(update conversion tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtedemaupeou committed Jul 3, 2018
1 parent 0fa69b6 commit dc2a51e
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 @@ -10,7 +10,7 @@ describe('convertFiatToBitcoin', () => {
rates: bitcoinRates
}
const expectedOutput = {
value: '0.00015175',
value: '0.00015174',
unit: { rate: '100000000', symbol: 'BTC', decimal_digits: 8, currency: 'BTC' }
}
const result = Conversion.convertFiatToBitcoin(input)
Expand All @@ -24,7 +24,7 @@ describe('convertFiatToBitcoin', () => {
rates: bitcoinRates
}
const expectedOutput = {
value: '0.00000000',
value: '0',
unit: { rate: '100000000', symbol: 'BTC', decimal_digits: 8, currency: 'BTC' }
}
const result = Conversion.convertFiatToBitcoin(input)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('displayFiatToBitcoin', () => {
toUnit: 'BTC',
rates: bitcoinRates
}
const expectedOutput = '0.00015175 BTC'
const expectedOutput = '0.00015174 BTC'
const result = Conversion.displayFiatToBitcoin(input)
expect(result).toEqual(expectedOutput)
})
Expand All @@ -20,7 +20,7 @@ describe('displayFiatToBitcoin', () => {
toUnit: 'BTC',
rates: bitcoinRates
}
const expectedOutput = '0.00000000 BTC'
const expectedOutput = '0 BTC'
const result = Conversion.displayFiatToBitcoin(input)
expect(result).toEqual(expectedOutput)
})
Expand Down

0 comments on commit dc2a51e

Please sign in to comment.