diff options
| author | John Maia <[email protected]> | 2018-01-13 10:49:52 +0000 |
|---|---|---|
| committer | John Maia <[email protected]> | 2018-01-13 10:49:52 +0000 |
| commit | 0326dda70f738c521cb0608dffe6f3d18bdf5ce9 (patch) | |
| tree | 55bf7d739e6c237e0076c09b9d8594352f70ad5f /test | |
| parent | 220e5cbff3ac8bd437619c5df712bbfb8622895d (diff) | |
| download | faker-0326dda70f738c521cb0608dffe6f3d18bdf5ce9.tar.xz faker-0326dda70f738c521cb0608dffe6f3d18bdf5ce9.zip | |
Add litecoinAddress generator
Diffstat (limited to 'test')
| -rw-r--r-- | test/finance.unit.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/finance.unit.js b/test/finance.unit.js index b8b380ee..e8d7580f 100644 --- a/test/finance.unit.js +++ b/test/finance.unit.js @@ -238,6 +238,14 @@ describe('finance.js', function () { }); }); + describe("litecoinAddress()", function(){ + it("returns a random litecoin address", function(){ + var litecoinAddress = faker.finance.litecoinAddress(); + + assert.ok(litecoinAddress.match(/^[LM3][a-km-zA-HJ-NP-Z1-9]{26,33}$/)); + }); + }); + describe("ethereumAddress()", function(){ it("returns a random ethereum address", function(){ var ethereumAddress = faker.finance.ethereumAddress(); @@ -308,7 +316,7 @@ describe('finance.js', function () { assert.ok(luhnFormula(number)); }); }); - + describe("creditCardCVV()", function(){ it("returns a random credit card CVV", function(){ var cvv = faker.finance.creditCardCVV(); @@ -316,7 +324,7 @@ describe('finance.js', function () { assert.ok(cvv.match(/^[0-9]{3}$/)); }); }); - + describe("iban()", function () { var ibanLib = require('../lib/iban'); |
