Comparing version 1.0.10 to 1.0.11
{ | ||
"name": "chance", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"main": "chance.js", | ||
@@ -17,3 +17,3 @@ "ignore": [ | ||
"name": "Victor Quinn", | ||
"web": "http://victorquinn.com" | ||
"web": "https://www.victorquinn.com" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
{ | ||
"name": "chance", | ||
"main": "./chance.js", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Chance - Utility library to generate anything random", | ||
@@ -51,3 +51,3 @@ "homepage": "http://chancejs.com", | ||
"email": "mail@victorquinn.com", | ||
"web": "http://victorquinn.com" | ||
"web": "https://www.victorquinn.com" | ||
} | ||
@@ -54,0 +54,0 @@ ], |
@@ -113,3 +113,3 @@ # Chance | ||
### Victor Quinn | ||
[http://victorquinn.com](http://victorquinn.com) | ||
[https://www.victorquinn.com](https://www.victorquinn.com) | ||
@@ -116,0 +116,0 @@ Please feel free to reach out to me if you have any questions or suggestions. |
@@ -299,2 +299,20 @@ import test from 'ava' | ||
test('letter() returns a letter', t => { | ||
_.times(1000, () => { | ||
let letter = chance.letter() | ||
t.is(typeof letter, 'string') | ||
t.is(letter.length, 1) | ||
t.true(letter.match(/[a-z]/) !== null) | ||
}) | ||
}) | ||
test('letter() can take upper case', t => { | ||
_.times(1000, () => { | ||
let letter = chance.letter({ casing: 'upper' }) | ||
t.is(typeof letter, 'string') | ||
t.is(letter.length, 1) | ||
t.true(letter.match(/[A-Z]/) !== null) | ||
}) | ||
}) | ||
test('natural() returns a random natural', t => { | ||
@@ -301,0 +319,0 @@ t.is(typeof chance.natural(), 'number') |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
901279
10137
27