Comparing version 1.0.11 to 1.0.12
{ | ||
"name": "chance", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"main": "chance.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
{ | ||
"name": "chance", | ||
"main": "./chance.js", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "Chance - Utility library to generate anything random", | ||
@@ -6,0 +6,0 @@ "homepage": "http://chancejs.com", |
@@ -7,2 +7,9 @@ import test from 'ava' | ||
// chance.coin() | ||
test('coin() returns a coin', t => { | ||
_.times(1000, () => { | ||
t.true(/(heads|tails)/.test(chance.coin())) | ||
}) | ||
}) | ||
// chance.d4() | ||
@@ -9,0 +16,0 @@ test('d4() returns a properly bounded d4', t => { |
@@ -319,3 +319,5 @@ import test from 'ava' | ||
_.times(1000, () => { | ||
t.true(_.isNumber(chance.fbid())) | ||
let fbid = chance.fbid() | ||
t.true(_.isString(fbid)) | ||
t.is(fbid.length, 16) | ||
}) | ||
@@ -322,0 +324,0 @@ }) |
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
905392
28
10263