aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md6
-rw-r--r--build/gulp-tasks/jsdoc.js2
-rw-r--r--doc/faker.lorem.html8
-rw-r--r--doc/styles/site.darkstrap.css2
-rw-r--r--doc/styles/site.dibs-bootstrap.css2
-rw-r--r--lib/address.js2
-rw-r--r--lib/finance.js4
-rw-r--r--lib/lorem.js4
-rw-r--r--lib/unique.js2
-rw-r--r--test/commerce.unit.js2
-rw-r--r--test/datatype.unit.js2
-rw-r--r--test/finance.unit.js2
-rw-r--r--test/support/chai.js14
-rw-r--r--test/system.unit.js8
14 files changed, 30 insertions, 30 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ffd9e2e7..c90bd6d9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,10 +29,10 @@ http://github.com/marak/faker.js
- Add IBAN and BIC generator functions
### Fix
-- Fix aomount and price argument dec for case = 0
+- Fix amount and price argument dec for case = 0
- Default shuffle value
- Fix dec for amount in finance
-- Don't allow path seperators in generated filenames in system
+- Don't allow path separators in generated filenames in system
- Add lorem.slug to functional test
- Don't throw in helpers.shuffle on empty array
- Adds precision value to faker.random.number call
@@ -122,7 +122,7 @@ http://github.com/marak/faker.js
* Added ISO 3166 countries
- contributed by MaerF0x0
* UMD support
- - contirbuted by xaka
+ - contributed by xaka
* Uk Postal Codes
- contributed by schmtw
* Undefined global object for webworker fix
diff --git a/build/gulp-tasks/jsdoc.js b/build/gulp-tasks/jsdoc.js
index 34900b07..defe4cb4 100644
--- a/build/gulp-tasks/jsdoc.js
+++ b/build/gulp-tasks/jsdoc.js
@@ -11,7 +11,7 @@ const jsdoc = require('gulp-jsdoc3');
const config = require('../../conf.json');
-module.exports = function jdsoc (cb) {
+module.exports = function jsdoc (cb) {
src(['./README.md', './lib/*.js'], { read: false })
.pipe(jsdoc(config, cb));
}; \ No newline at end of file
diff --git a/doc/faker.lorem.html b/doc/faker.lorem.html
index e8355180..66f88177 100644
--- a/doc/faker.lorem.html
+++ b/doc/faker.lorem.html
@@ -1335,7 +1335,7 @@
- <td class="description last"><p>defautls to a random number between 2 and 6</p></td>
+ <td class="description last"><p>defaults to a random number between 2 and 6</p></td>
</tr>
@@ -1487,7 +1487,7 @@
- <td class="description last"><p>defautls to a random number between 2 and 6</p></td>
+ <td class="description last"><p>defaults to a random number between 2 and 6</p></td>
</tr>
@@ -3875,7 +3875,7 @@
- <td class="description last"><p>defautls to a random number between 2 and 6</p></td>
+ <td class="description last"><p>defaults to a random number between 2 and 6</p></td>
</tr>
@@ -4027,7 +4027,7 @@
- <td class="description last"><p>defautls to a random number between 2 and 6</p></td>
+ <td class="description last"><p>defaults to a random number between 2 and 6</p></td>
</tr>
diff --git a/doc/styles/site.darkstrap.css b/doc/styles/site.darkstrap.css
index 5a67785e..efb84c1c 100644
--- a/doc/styles/site.darkstrap.css
+++ b/doc/styles/site.darkstrap.css
@@ -88,7 +88,7 @@ img {
/* Responsive images (ensure images don't scale beyond their parents) */
max-width: 100%;
- /* Part 1: Set a maxium relative to the parent */
+ /* Part 1: Set a maximum relative to the parent */
width: auto\9;
/* IE7-8 need help adjusting responsive images */
diff --git a/doc/styles/site.dibs-bootstrap.css b/doc/styles/site.dibs-bootstrap.css
index 9fc8b115..3ea3e4ad 100644
--- a/doc/styles/site.dibs-bootstrap.css
+++ b/doc/styles/site.dibs-bootstrap.css
@@ -5615,7 +5615,7 @@ th.hidden-lg, td.hidden-lg {
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
- * Boostrap 3 patch for for bootstrap-modal. Include BEFORE bootstrap-modal.css!
+ * Bootstrap 3 patch for for bootstrap-modal. Include BEFORE bootstrap-modal.css!
*/
body.modal-open, .modal-open .navbar-fixed-top, .modal-open .navbar-fixed-bottom {
margin-right: 0; }
diff --git a/lib/address.js b/lib/address.js
index bf295ba2..2bd883c4 100644
--- a/lib/address.js
+++ b/lib/address.js
@@ -390,7 +390,7 @@ function Address (faker) {
radius = radius || 10.0;
isMetric = isMetric || false;
- // TODO: implement either a gaussian/uniform distribution of points in cicular region.
+ // TODO: implement either a gaussian/uniform distribution of points in circular region.
// Possibly include param to function that allows user to choose between distributions.
// This approach will likely result in a higher density of points near the center.
diff --git a/lib/finance.js b/lib/finance.js
index e04729b1..b049c40b 100644
--- a/lib/finance.js
+++ b/lib/finance.js
@@ -174,7 +174,7 @@ var Finance = function (faker) {
var address = faker.random.arrayElement(['1', '3']);
for (var i = 0; i < addressLength - 1; i++)
- address += faker.random.arrayElement('123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'.split(''));
+ address += faker.random.arrayElement('123456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''));
return address;
}
@@ -190,7 +190,7 @@ self.litecoinAddress = function () {
var address = faker.random.arrayElement(['L', 'M', '3']);
for (var i = 0; i < addressLength - 1; i++)
- address += faker.random.arrayElement('123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'.split(''));
+ address += faker.random.arrayElement('123456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''));
return address;
}
diff --git a/lib/lorem.js b/lib/lorem.js
index a6d7219f..0569e866 100644
--- a/lib/lorem.js
+++ b/lib/lorem.js
@@ -50,7 +50,7 @@ var Lorem = function (faker) {
if (typeof wordCount == 'undefined') { wordCount = faker.datatype.number({ min: 3, max: 10 }); }
// if (typeof range == 'undefined') { range = 7; }
- // strange issue with the node_min_test failing for captialize, please fix and add faker.lorem.back
+ // strange issue with the node_min_test failing for capitalize, please fix and add faker.lorem.back
//return faker.lorem.words(wordCount + Helpers.randomNumber(range)).join(' ').capitalize();
var sentence = faker.lorem.words(wordCount);
@@ -72,7 +72,7 @@ var Lorem = function (faker) {
* sentences
*
* @method faker.lorem.sentences
- * @param {number} sentenceCount defautls to a random number between 2 and 6
+ * @param {number} sentenceCount defaults to a random number between 2 and 6
* @param {string} separator defaults to `' '`
*/
self.sentences = function (sentenceCount, separator) {
diff --git a/lib/unique.js b/lib/unique.js
index 70d038fa..10b02bd5 100644
--- a/lib/unique.js
+++ b/lib/unique.js
@@ -10,7 +10,7 @@ function Unique (faker) {
// maximum time unique.exec will attempt to run before aborting
var maxTime = 10;
- // maximum retries unique.exec will recurse before abortings ( max loop depth )
+ // maximum retries unique.exec will recurse before aborting ( max loop depth )
var maxRetries = 10;
// time the script started
diff --git a/test/commerce.unit.js b/test/commerce.unit.js
index 26b89a68..df5bddd7 100644
--- a/test/commerce.unit.js
+++ b/test/commerce.unit.js
@@ -33,7 +33,7 @@ describe("commerce.js", function() {
faker.random.arrayElement.restore();
});
- it("should return the maxiumum value if we specify the fixed value", function() {
+ it("should return the maximum value if we specify the fixed value", function() {
sinon.spy(faker.random, 'arrayElement');
var department = faker.commerce.department(5, true);
diff --git a/test/datatype.unit.js b/test/datatype.unit.js
index 84a24fd5..ec107d5a 100644
--- a/test/datatype.unit.js
+++ b/test/datatype.unit.js
@@ -166,7 +166,7 @@ describe("datatype.js", function () {
assert.ok(!isNaN(date.getTime()));
assert.strictEqual(Object.prototype.toString.call(date), "[object Date]");
});
- it('basic test with stubed value', function () {
+ it('basic test with stubbed value', function () {
var today = new Date();
sinon.stub(faker.datatype, 'number').returns(today);
var date = faker.datatype.datetime();
diff --git a/test/finance.unit.js b/test/finance.unit.js
index aa617d0a..9fa426dd 100644
--- a/test/finance.unit.js
+++ b/test/finance.unit.js
@@ -267,7 +267,7 @@ describe('finance.js', function () {
var bitcoinAddress = faker.finance.bitcoinAddress();
/**
- * Note: Although the total length of a Bitcoin address can be 25-33 characters, regex quantifiers only check the proceding token
+ * Note: Although the total length of a Bitcoin address can be 25-33 characters, regex quantifiers only check the preceding token
* Therefore we take one from the total length of the address not including the first character ([13])
*/
diff --git a/test/support/chai.js b/test/support/chai.js
index 43fbf644..fac55c78 100644
--- a/test/support/chai.js
+++ b/test/support/chai.js
@@ -325,7 +325,7 @@ Assertion.addChainableMethod('contain', include, includeChainingBehavior);
*
* Asserts that the target is truthy.
*
- * expect('everthing').to.be.ok;
+ * expect('everything').to.be.ok;
* expect(1).to.be.ok;
* expect(false).to.not.be.ok;
* expect(undefined).to.not.be.ok;
@@ -2652,7 +2652,7 @@ require.register("utils/getMessage.js", function(module, exports, require){
*/
/*!
- * Module dependancies
+ * Module dependencies
*/
var flag = require('./flag')
@@ -2666,7 +2666,7 @@ var flag = require('./flag')
* and template tags. Template tags will return
* a stringified inspection of the object referenced.
*
- * Messsage template tags:
+ * Message template tags:
* - `#{this}` current asserted object
* - `#{act}` actual value
* - `#{exp}` expected value
@@ -3217,7 +3217,7 @@ require.register("utils/overwriteMethod.js", function(module, exports, require){
/**
* ### overwriteMethod (ctx, name, fn)
*
- * Overwites an already existing method and provides
+ * Overwrites an already existing method and provides
* access to previous function. Must return function
* to be used for name.
*
@@ -3272,7 +3272,7 @@ require.register("utils/overwriteProperty.js", function(module, exports, require
/**
* ### overwriteProperty (ctx, name, fn)
*
- * Overwites an already existing property getter and provides
+ * Overwrites an already existing property getter and provides
* access to previous value. Must return function to use as getter.
*
* utils.overwriteProperty(chai.Assertion.prototype, 'ok', function (_super) {
@@ -3328,7 +3328,7 @@ require.register("utils/test.js", function(module, exports, require){
*/
/*!
- * Module dependancies
+ * Module dependencies
*/
var flag = require('./flag');
@@ -3369,7 +3369,7 @@ require.register("utils/transferFlags.js", function(module, exports, require){
* var newAssertion = new Assertion();
* utils.transferFlags(assertion, newAssertion);
*
- * var anotherAsseriton = new Assertion(myObj);
+ * var anotherAssertion = new Assertion(myObj);
* utils.transferFlags(assertion, anotherAssertion, false);
*
* @param {Assertion} assertion the assertion to transfer the flags from
diff --git a/test/system.unit.js b/test/system.unit.js
index 004460d2..7f45a6f9 100644
--- a/test/system.unit.js
+++ b/test/system.unit.js
@@ -26,20 +26,20 @@ describe("system.js", function () {
});
describe("fileName()", function () {
- it("returns filenames without system path seperators", function () {
+ it("returns filenames without system path separators", function () {
sinon.stub(faker.random, 'words').returns('24/7');
var fileName = faker.system.fileName();
- assert.strictEqual(fileName.indexOf('/'), -1, 'generated fileNames should not have path seperators');
+ assert.strictEqual(fileName.indexOf('/'), -1, 'generated fileNames should not have path separators');
faker.random.words.restore();
});
});
describe("commonFileName()", function () {
- it("returns filenames without system path seperators", function () {
+ it("returns filenames without system path separators", function () {
sinon.stub(faker.random, 'words').returns('24/7');
var fileName = faker.system.commonFileName();
- assert.strictEqual(fileName.indexOf('/'), -1, 'generated commonFileNames should not have path seperators');
+ assert.strictEqual(fileName.indexOf('/'), -1, 'generated commonFileNames should not have path separators');
faker.random.words.restore();
});