Skip to content

Commit

Permalink
style: fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
assisrafael committed Mar 28, 2016
1 parent a0b03ac commit 9576b14
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
2,
"never"
],
"consistent-return": 2,
"consistent-this": 2,
"curly": 2,
"default-case": 2,
Expand Down Expand Up @@ -111,7 +110,6 @@
"no-floating-decimal": 2,
"no-implicit-globals": 2,
"no-implied-eval": 2,
"no-inline-comments": 2,
"no-inner-declarations": [
2,
"functions"
Expand Down
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ This release migrates all directives to angular 1.3.x.
Angular 1.2.x is no longer supported by angular-input-masks@^2.0.0, however angular-input-masks@^1.0.0 will continue to receive bug fixes.

* The following deprecated directives were removed:
* uiCpfMask: replaced by *uiBrCpfMask*
* uiCnpjMask: replaced by *uiBrCnpjMask*
* uiCpfcnpjMask: replaced by *uiBrCpfCnpjMask*
* uiCpfMask: replaced by *uiBrCpfMask*
* uiCnpjMask: replaced by *uiBrCnpjMask*
* uiCpfcnpjMask: replaced by *uiBrCpfCnpjMask*


<a name"1.5.1"></a>
Expand Down
2 changes: 1 addition & 1 deletion src/br/boleto-bancario/boleto-bancario.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ describe('ui-br-boleto-bancario-mask', function() {
var model = input.controller('ngModel');
expect(model.$error.brBoletoBancario).toBe(true);
input.val('10491443385511900000200000000141325230000093423').triggerHandler('input');
expect(model.$error.brBoletoBancario).toBe(undefined);
expect(model.$error.brBoletoBancario).toBeUndefined();
});
});
2 changes: 1 addition & 1 deletion src/br/cnpj/cnpj.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('ui-br-cnpj-mask', function() {
{modelValue: '', viewValue: ''},
{modelValue: '0', viewValue: '0'},
{modelValue: null, viewValue: null},
{modelValue: undefined, viewValue: undefined},
{}, //tests undefined values
];

tests.forEach(function(test) {
Expand Down
2 changes: 1 addition & 1 deletion src/br/cpf-cnpj/cpf-cnpj.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('ui-br-cpfcnpj-mask', function() {
{modelValue: '', viewValue: ''},
{modelValue: '0', viewValue: '0'},
{modelValue: null, viewValue: null},
{modelValue: undefined, viewValue: undefined},
{}, //tests undefined values
];

tests.forEach(function(test) {
Expand Down
2 changes: 1 addition & 1 deletion src/br/cpf/cpf.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('ui-br-cpf-mask', function() {
{modelValue: '', viewValue: ''},
{modelValue: '0', viewValue: '0'},
{modelValue: null, viewValue: null},
{modelValue: undefined, viewValue: undefined},
{}, //tests undefined values
];

tests.forEach(function(test) {
Expand Down
2 changes: 1 addition & 1 deletion src/br/inscricao-estadual/ie.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function BrIeMaskDirective($parse) {

function getMask(uf, value) {
if (!uf || !ieMasks[uf]) {
return undefined;
return;
}

if (uf === 'SP' && /^P/i.test(value)) {
Expand Down
2 changes: 1 addition & 1 deletion src/br/inscricao-estadual/ie.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('ui-br-ie-mask', function() {
var tests = [
{modelValue: '', viewValue: ''},
{modelValue: null, viewValue: null},
{modelValue: undefined, viewValue: undefined},
{}, //tests undefined values
];

tests.forEach(function(test) {
Expand Down
2 changes: 1 addition & 1 deletion src/br/phone/br-phone.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('ui-br-phone-number', function() {
var model = input.controller('ngModel');
expect(model.$error.brPhoneNumber).toBe(true);
input.val('12345678901').triggerHandler('input');
expect(model.$error.brPhoneNumber).toBe(undefined);
expect(model.$error.brPhoneNumber).toBeUndefined();
});

it('should use the type of the model value (if initialized)', function() {
Expand Down
2 changes: 1 addition & 1 deletion src/global/date/date.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('ui-date-mask', function() {
var tests = [
{modelValue: '', viewValue: ''},
{modelValue: null, viewValue: null},
{modelValue: undefined, viewValue: undefined},
{}, //tests undefined values
];

tests.forEach(function(test) {
Expand Down
8 changes: 3 additions & 5 deletions src/global/money/money.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ describe('ui-money-mask', function() {
{modelValue: '0', viewValue: '$ 0.00'},
{modelValue: '0.0', viewValue: '$ 0.00'},
{modelValue: 0, viewValue: '$ 0.00'},
{modelValue: undefined, viewValue: undefined},
{},
{modelValue: null, viewValue: null},
];

Expand All @@ -141,14 +141,12 @@ describe('ui-money-mask', function() {
});

it('should ignore non digits', function() {
var input = TestUtil.compile('<input ng-model="model" ui-money-mask>', {
model: undefined
});
var input = TestUtil.compile('<input ng-model="model" ui-money-mask>', {});
var model = input.controller('ngModel');

var tests = [
{value: '@', viewValue: '', modelValue: ''},
{value: undefined, viewValue: undefined, modelValue: undefined},
{},
{value: null, viewValue: null, modelValue: null},
];

Expand Down

0 comments on commit 9576b14

Please sign in to comment.