diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/finance.unit.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/finance.unit.js b/test/finance.unit.js index ceb15244..6bbb51c6 100644 --- a/test/finance.unit.js +++ b/test/finance.unit.js @@ -202,4 +202,12 @@ describe('finance.js', function () { assert.ok(currencyCode.match(/[A-Z]{3}/)); }); }) + + describe("bitcoinAddress()", function(){ + it("returns a random bitcoin address", function(){ + var bitcoinAddress = faker.finance.bitcoinAddress(); + + assert.ok(bitcoinAddress.match(/^[A-Z0-9.]{27,34}$/)); + }); + }); });
\ No newline at end of file |
