Skip to content

Commit b81c887

Browse files
committedApr 7, 2016
Correct spelling
1 parent 649843a commit b81c887

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed
 

‎lib/finance.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ var Finance = function (faker) {
4141
* @method faker.finance.mask
4242
* @param {number} length
4343
* @param {boolean} parens
44-
* @param {boolean} elipsis
44+
* @param {boolean} ellipsis
4545
*/
46-
self.mask = function (length, parens, elipsis) {
46+
self.mask = function (length, parens, ellipsis) {
4747

4848

4949
//set defaults
5050
length = (length == 0 || !length || typeof length == 'undefined') ? 4 : length;
5151
parens = (parens === null) ? true : parens;
52-
elipsis = (elipsis === null) ? true : elipsis;
52+
ellipsis = (ellipsis === null) ? true : ellipsis;
5353

5454
//create a template for length
5555
var template = '';
@@ -58,8 +58,8 @@ var Finance = function (faker) {
5858
template = template + '#';
5959
}
6060

61-
//prefix with elipsis
62-
template = (elipsis) ? ['...', template].join('') : template;
61+
//prefix with ellipsis
62+
template = (ellipsis) ? ['...', template].join('') : template;
6363

6464
template = (parens) ? ['(', template, ')'].join('') : template;
6565

‎lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function Faker (opts) {
101101
"separator": ""
102102
};
103103

104-
// Create a Getter for all definitions.foo.bar propetries
104+
// Create a Getter for all definitions.foo.bar properties
105105
Object.keys(_definitions).forEach(function(d){
106106
if (typeof self.definitions[d] === "undefined") {
107107
self.definitions[d] = {};
@@ -117,7 +117,7 @@ function Faker (opts) {
117117
get: function () {
118118
if (typeof self.locales[self.locale][d] === "undefined" || typeof self.locales[self.locale][d][p] === "undefined") {
119119
// certain localization sets contain less data then others.
120-
// in the case of a missing defintion, use the default localeFallback to substitute the missing set data
120+
// in the case of a missing definition, use the default localeFallback to substitute the missing set data
121121
// throw new Error('unknown property ' + d + p)
122122
return self.locales[localeFallback][d][p];
123123
} else {

‎test/finance.unit.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('finance.js', function () {
5858
});
5959

6060

61-
describe('mask( length, parens, elipsis )', function () {
61+
describe('mask( length, parens, ellipsis )', function () {
6262
it("should set a default length", function () {
6363

6464
var expected = 4; //default account mask length
@@ -111,7 +111,7 @@ describe('finance.js', function () {
111111

112112
});
113113

114-
it("should by default include an elipsis", function () {
114+
it("should by default include an ellipsis", function () {
115115

116116
var expected = true;
117117

@@ -127,10 +127,10 @@ describe('finance.js', function () {
127127
it("should work when random variables are passed into the arguments", function () {
128128

129129
var length = faker.random.number(20);
130-
var elipsis = (length % 2 === 0) ? true : false;
131-
var parens = !elipsis;
130+
var ellipsis = (length % 2 === 0) ? true : false;
131+
var parens = !ellipsis;
132132

133-
var mask = faker.finance.mask(length, elipsis, parens);
133+
var mask = faker.finance.mask(length, ellipsis, parens);
134134
assert.ok(mask);
135135

136136
});

0 commit comments

Comments
 (0)