From cf22b690004e67d523a72ef72994b1248ca0bd4b Mon Sep 17 00:00:00 2001 From: ashmothership Date: Thu, 17 Mar 2016 23:58:29 +0000 Subject: Bitcoin support --- test/finance.unit.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') 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 -- cgit v1.2.3