diff options
| author | Marak <[email protected]> | 2020-06-09 23:41:32 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-09 23:41:32 -0500 |
| commit | 98195ceb0815aa705a958ea4e7bf4b80ce068443 (patch) | |
| tree | fc779a9690521309869ee8de41e65f113bd94d28 /test | |
| parent | 3b2fa4aebccee52ae1bafc15d575061fb30c3cf1 (diff) | |
| parent | f4c2785d4ccaeca4d8ce6bfab2b43724de01d946 (diff) | |
| download | faker-98195ceb0815aa705a958ea4e7bf4b80ce068443.tar.xz faker-98195ceb0815aa705a958ea4e7bf4b80ce068443.zip | |
Merge pull request #912 from Zache/master
Fixes currency codes
Diffstat (limited to 'test')
| -rw-r--r-- | test/finance.unit.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/finance.unit.js b/test/finance.unit.js index bad85884..6c1cb142 100644 --- a/test/finance.unit.js +++ b/test/finance.unit.js @@ -226,7 +226,7 @@ describe('finance.js', function () { it("returns a random currency code with a format", function () { var currencyCode = faker.finance.currencyCode(); - assert.ok(currencyCode.match(/[A-Z]{3}/)); + assert.ok(currencyCode.match(/^[A-Z]{3}$/)); }); }); |
