Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 33477cd

Browse files
author
Kamil Kisiela
committed
style: lint free tests
1 parent 69f2998 commit 33477cd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/index-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import './types';
66
import './wrappers';
77

88
// mock console warn (we don't need no education - from formly ;] )
9-
console.warn = function() {};
9+
console.warn = function consoleWarn() {};

tests/types/input-spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ describe('formlyMaterial - input type', () => {
108108
}
109109
});
110110

111-
expect(parseInt(element.attr('step'))).toEqual(field.templateOptions.step);
111+
expect(parseInt(element.attr('step'), 10)).toEqual(field.templateOptions.step);
112112
});
113113
});
114114

@@ -133,7 +133,7 @@ describe('formlyMaterial - input type', () => {
133133
}
134134
});
135135

136-
expect(parseInt(element.attr('min'))).toEqual(field.templateOptions.min);
136+
expect(parseInt(element.attr('min'), 10)).toEqual(field.templateOptions.min);
137137
});
138138
});
139139

@@ -158,7 +158,7 @@ describe('formlyMaterial - input type', () => {
158158
}
159159
});
160160

161-
expect(parseInt(element.attr('max'))).toEqual(field.templateOptions.max);
161+
expect(parseInt(element.attr('max'), 10)).toEqual(field.templateOptions.max);
162162
});
163163
});
164164
});

tests/types/textarea-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ describe('formlyMaterial - textarea type', () => {
6464
expect(label.html()).toContain(field.templateOptions.label);
6565
});
6666

67-
it('should not auto grow', function() {
67+
it('should not auto grow', () => {
6868
expect(element.attr('md-no-autogrow')).toBeUndefined();
6969
});
7070

71-
it('should be able to disable autogrowing', function() {
71+
it('should be able to disable autogrowing', () => {
7272
compile({
7373
templateOptions: {
7474
grow: false

0 commit comments

Comments
 (0)