aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarak <[email protected]>2016-03-17 20:51:30 -0400
committerMarak <[email protected]>2016-03-17 20:51:30 -0400
commit9c7620f87918652020f2b239cde3e55df749be70 (patch)
tree0034280fdaff87f538fdc975b04330895b89219f /test
parent1238c8b65e15972f9746863b8b3b5a6161b34770 (diff)
parentcf22b690004e67d523a72ef72994b1248ca0bd4b (diff)
downloadfaker-9c7620f87918652020f2b239cde3e55df749be70.tar.xz
faker-9c7620f87918652020f2b239cde3e55df749be70.zip
Merge pull request #352 from ashpr/bitcoin-support
[api] Added Bitcoin support
Diffstat (limited to 'test')
-rw-r--r--test/finance.unit.js8
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