We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0b03ac commit 9576b14Copy full SHA for 9576b14
.eslintrc.json
@@ -53,7 +53,6 @@
53
2,
54
"never"
55
],
56
- "consistent-return": 2,
57
"consistent-this": 2,
58
"curly": 2,
59
"default-case": 2,
@@ -111,7 +110,6 @@
111
110
"no-floating-decimal": 2,
112
"no-implicit-globals": 2,
113
"no-implied-eval": 2,
114
- "no-inline-comments": 2,
115
"no-inner-declarations": [
116
117
"functions"
CHANGELOG.md
@@ -42,9 +42,9 @@ This release migrates all directives to angular 1.3.x.
42
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.
43
44
* The following deprecated directives were removed:
45
- * uiCpfMask: replaced by *uiBrCpfMask*
46
- * uiCnpjMask: replaced by *uiBrCnpjMask*
47
- * uiCpfcnpjMask: replaced by *uiBrCpfCnpjMask*
+* uiCpfMask: replaced by *uiBrCpfMask*
+* uiCnpjMask: replaced by *uiBrCnpjMask*
+* uiCpfcnpjMask: replaced by *uiBrCpfCnpjMask*
48
49
50
<a name"1.5.1"></a>
src/br/boleto-bancario/boleto-bancario.test.js
@@ -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();
});
src/br/cnpj/cnpj.test.js
@@ -39,7 +39,7 @@ describe('ui-br-cnpj-mask', function() {
39
{modelValue: '', viewValue: ''},
40
{modelValue: '0', viewValue: '0'},
41
{modelValue: null, viewValue: null},
- {modelValue: undefined, viewValue: undefined},
+ {}, //tests undefined values
];
tests.forEach(function(test) {
src/br/cpf-cnpj/cpf-cnpj.test.js
@@ -39,7 +39,7 @@ describe('ui-br-cpfcnpj-mask', function() {
src/br/cpf/cpf.test.js
@@ -39,7 +39,7 @@ describe('ui-br-cpf-mask', function() {
src/br/inscricao-estadual/ie.js
@@ -48,7 +48,7 @@ function BrIeMaskDirective($parse) {
function getMask(uf, value) {
if (!uf || !ieMasks[uf]) {
51
- return undefined;
+ return;
52
}
if (uf === 'SP' && /^P/i.test(value)) {
src/br/inscricao-estadual/ie.test.js
@@ -38,7 +38,7 @@ describe('ui-br-ie-mask', function() {
38
var tests = [
src/br/phone/br-phone.test.js
@@ -78,7 +78,7 @@ describe('ui-br-phone-number', function() {
78
79
expect(model.$error.brPhoneNumber).toBe(true);
80
input.val('12345678901').triggerHandler('input');
81
- expect(model.$error.brPhoneNumber).toBe(undefined);
+ expect(model.$error.brPhoneNumber).toBeUndefined();
82
83
84
it('should use the type of the model value (if initialized)', function() {
src/global/date/date.test.js
@@ -57,7 +57,7 @@ describe('ui-date-mask', function() {
60
61
62
63
src/global/money/money.test.js
@@ -130,7 +130,7 @@ describe('ui-money-mask', function() {
130
{modelValue: '0', viewValue: '$ 0.00'},
131
{modelValue: '0.0', viewValue: '$ 0.00'},
132
{modelValue: 0, viewValue: '$ 0.00'},
133
+ {},
134
135
136
@@ -141,14 +141,12 @@ describe('ui-money-mask', function() {
141
142
143
it('should ignore non digits', function() {
144
- var input = TestUtil.compile('<input ng-model="model" ui-money-mask>', {
145
- model: undefined
146
- });
+ var input = TestUtil.compile('<input ng-model="model" ui-money-mask>', {});
147
148
149
150
{value: '@', viewValue: '', modelValue: ''},
151
- {value: undefined, viewValue: undefined, modelValue: undefined},
152
{value: null, viewValue: null, modelValue: null},
153
154
0 commit comments