Added amountSatoshis.
This commit is contained in:
parent
fa15b26792
commit
48b8bbf90a
2 changed files with 14 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue