Comparing version 0.7.0 to 0.7.1
#!/usr/bin/env node | ||
var Chance = require('../chance.js'); | ||
var argv = require('minimist')(process.argv.slice(2)); | ||
var argv = require('minimist')(process.argv.slice(2),{string:"pool"}); | ||
@@ -6,0 +6,0 @@ // Check which generator the user wants to invoke. |
{ | ||
"name": "chance", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"main": "chance.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
@@ -5,3 +5,3 @@ { | ||
"description": "Minimalist generator of random strings, numbers, etc.", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"keywords": ["chance", "random", "generator", "test"], | ||
@@ -8,0 +8,0 @@ "main": "chance.js", |
{ | ||
"name": "chance", | ||
"main": "./chance.js", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Chance - Utility library to generate anything random", | ||
@@ -6,0 +6,0 @@ "homepage": "http://chancejs.com", |
@@ -144,18 +144,18 @@ # Chance | ||
repo age : 1 year, 6 months | ||
active : 106 days | ||
commits : 419 | ||
active : 109 days | ||
commits : 426 | ||
files : 24 | ||
authors : | ||
290 Victor Quinn 69.2% | ||
22 Oliver Salzburg 5.3% | ||
294 Victor Quinn 69.0% | ||
25 Oliver Salzburg 5.9% | ||
13 Tim Petricola 3.1% | ||
11 davmillar 2.6% | ||
7 Jan Tojnar 1.7% | ||
7 Jan Tojnar 1.6% | ||
5 Michael Cordingley 1.2% | ||
5 Alex DiLiberto 1.2% | ||
5 Matt Klaber 1.2% | ||
4 Avishaan 1.0% | ||
4 Abhijeet Pawar 1.0% | ||
4 Kevin Garnett 1.0% | ||
4 Chris Villarreal 1.0% | ||
4 Avishaan 0.9% | ||
4 Abhijeet Pawar 0.9% | ||
4 Kevin Garnett 0.9% | ||
4 Chris Villarreal 0.9% | ||
3 Nicholas Johnson 0.7% | ||
@@ -162,0 +162,0 @@ 3 Alexandr Lozovyuk 0.7% |
@@ -6,3 +6,3 @@ define(['Chance', 'mocha', 'chai', 'underscore', 'phoneTest'], function (Chance, mocha, chai, _, phoneTest) { | ||
describe("Address", function () { | ||
var zip, suffix, suffixes, state, address, phone, coordinates, chance = new Chance(); | ||
var zip, suffix, suffixes, state, address, phone, coordinates, country, chance = new Chance(); | ||
@@ -238,2 +238,22 @@ describe("Zip", function () { | ||
describe("Country", function () { | ||
it("countries() returns an array of countries", function () { | ||
expect(chance.countries()).to.be.an('array'); | ||
}); | ||
it("country() returns a random (short) country name", function () { | ||
_(1000).times(function () { | ||
country = chance.country(); | ||
expect(country.length).to.equal(2); | ||
}); | ||
}); | ||
it("country({full: true}) returns a random country name", function () { | ||
_(1000).times(function () { | ||
country = chance.country({full: true}); | ||
expect(country.length).to.be.above(2); | ||
}); | ||
}); | ||
}); | ||
describe("City", function () { | ||
@@ -240,0 +260,0 @@ it("city() looks right", 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
196532
3797