Skip to content

Commit

Permalink
Merge pull request #1217 from jsoref/spelling
Browse files Browse the repository at this point in the history
Spelling
  • Loading branch information
Marak authored Oct 19, 2021
2 parents 282aae9 + 6669bcd commit 2923437
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build/gulp-tasks/jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};
8 changes: 4 additions & 4 deletions doc/faker.lorem.html
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ <h5>Parameters:</h5>



<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>


Expand Down Expand Up @@ -1487,7 +1487,7 @@ <h5>Parameters:</h5>



<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>


Expand Down Expand Up @@ -3875,7 +3875,7 @@ <h5>Parameters:</h5>



<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>


Expand Down Expand Up @@ -4027,7 +4027,7 @@ <h5>Parameters:</h5>



<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>


Expand Down
2 changes: 1 addition & 1 deletion doc/styles/site.darkstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion doc/styles/site.dibs-bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion lib/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions lib/finance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/lorem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/unique.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/commerce.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/datatype.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion test/finance.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])
*/

Expand Down
14 changes: 7 additions & 7 deletions test/support/chai.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -2652,7 +2652,7 @@ require.register("utils/getMessage.js", function(module, exports, require){
*/

/*!
* Module dependancies
* Module dependencies
*/

var flag = require('./flag')
Expand All @@ -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
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -3328,7 +3328,7 @@ require.register("utils/test.js", function(module, exports, require){
*/

/*!
* Module dependancies
* Module dependencies
*/

var flag = require('./flag');
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/system.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 2923437

Please sign in to comment.