diff options
| author | Marak <[email protected]> | 2021-10-19 14:53:16 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-19 14:53:16 -0400 |
| commit | 29234378807c4141588861f69421bf20b5ac635e (patch) | |
| tree | d44314518a7c801a546c49334c86fbd357b6142b /test | |
| parent | 282aae9e913861cd12e41e3a569f462143bf8ee5 (diff) | |
| parent | 6669bcd6e3b8008fac786d54c5ccfc4fefa74769 (diff) | |
| download | faker-6.0.0-alpha.0.tar.xz faker-6.0.0-alpha.0.zip | |
Merge pull request #1217 from jsoref/spelling6.0.0-alpha.0
Spelling
Diffstat (limited to 'test')
| -rw-r--r-- | test/commerce.unit.js | 2 | ||||
| -rw-r--r-- | test/datatype.unit.js | 2 | ||||
| -rw-r--r-- | test/finance.unit.js | 2 | ||||
| -rw-r--r-- | test/support/chai.js | 14 | ||||
| -rw-r--r-- | test/system.unit.js | 8 |
5 files changed, 14 insertions, 14 deletions
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(); }); |
