aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorashmothership <[email protected]>2016-03-17 23:58:29 +0000
committerashmothership <[email protected]>2016-03-17 23:58:29 +0000
commitcf22b690004e67d523a72ef72994b1248ca0bd4b (patch)
tree0034280fdaff87f538fdc975b04330895b89219f /test
parent1238c8b65e15972f9746863b8b3b5a6161b34770 (diff)
downloadfaker-cf22b690004e67d523a72ef72994b1248ca0bd4b.tar.xz
faker-cf22b690004e67d523a72ef72994b1248ca0bd4b.zip
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