Comparing version 0.5.8 to 0.5.9
{ | ||
"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
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
142394
2918