Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chance

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chance - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

test/test.music.js

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc