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 0.5.8 to 0.5.9

2

bower.json
{
"name": "chance",
"version": "0.5.8",
"version": "0.5.9",
"main": "chance.js",

@@ -5,0 +5,0 @@ "ignore": ["node_modules"],

@@ -5,3 +5,3 @@ {

"description": "Minimalist generator of random strings, numbers, etc.",
"version": "0.5.8",
"version": "0.5.9",
"keywords": ["chance", "random", "generator", "test"],

@@ -8,0 +8,0 @@ "main": "chance.js",

{
"name": "chance",
"main": "./chance.js",
"version": "0.5.8",
"version": "0.5.9",
"description": "Chance - Utility library to generate anything random",

@@ -6,0 +6,0 @@ "homepage": "http://chancejs.com",

@@ -5,4 +5,20 @@ define(['Chance', 'mocha', 'chai', 'underscore'], function (Chance, mocha, chai, _) {

describe("Basics", function () {
var bool, integer, natural, floating, character, string, temp, chance = new Chance();
var bool, integer, natural, floating, character, string, temp, chance = new Chance(),
data, cData;
describe("Data", function () {
it("get data", function () {
data = chance.get("lastNames");
expect(data).to.be.an('array');
});
it("set custom data", function () {
cData = {lastNames: ["customName", "testLast"]};
chance.set(cData);
data = chance.get("lastNames");
expect(data).to.be.an('array');
expect(data).to.have.length(2);
});
});
describe("Bool", function () {

@@ -9,0 +25,0 @@ it("returns a random boolean", function () {

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