Added amountSatoshis.

This commit is contained in:
Brendon Duncan 2018-09-03 12:53:12 +12:00
commit 48b8bbf90a
2 changed files with 14 additions and 2 deletions

View file

@ -1,4 +1,4 @@
fdescribe('bitcoinUriService', function() {
describe('bitcoinUriService', function() {
var bitcoinUriService;
beforeEach(function() {
@ -113,6 +113,7 @@ fdescribe('bitcoinUriService', function() {
expect(parsed.isValid).toBe(true);
expect(parsed.amount).toBe('20.3');
expect(parsed.amountSatoshis).toBe(2030000000);
expect(parsed.coin).toBe('btc');
expect(parsed.label).toBe('Luke-Jr');
expect(parsed.publicAddress.legacy).toBe('12nCRhMDfxVnuF3uYMXv2fNxBohNmacfWu');