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

Commit b350850

Browse files
author
Kamil Kisiela
committed
refactor(tests): fix linting
1 parent 6bc6989 commit b350850

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/types/chips-spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ describe('formlyMaterial - chips type', () => {
1313
let fieldScope;
1414
const theme = 'custom';
1515

16-
function onAdd($modelValue, $inputValue, scope, $event) {
16+
function onAdd(/* $modelValue, $inputValue, scope, $event */) {
1717
return true;
1818
}
1919

20-
function onRemove($modelValue, $inputValue, scope, $event) {
20+
function onRemove(/* $modelValue, $inputValue, scope, $event */) {
2121
return true;
2222
}
2323

24-
function onSelect($modelValue, $inputValue, scope, $event) {
24+
function onSelect(/* $modelValue, $inputValue, scope, $event */) {
2525
return true;
2626
}
2727
//

tests/types/input-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe('formlyMaterial - input type', () => {
128128
}
129129
});
130130

131-
expect(parseInt(element.attr('step'))).toBe(field.templateOptions.step);
131+
expect(parseInt(element.attr('step'), 10)).toBe(field.templateOptions.step);
132132
});
133133

134134
it('should be available on number type', () => {

tests/types/select-spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ describe('formlyMaterial - select type', () => {
1717
let field;
1818
const theme = 'custom';
1919

20-
function onClose($modelValue, $inputValue, scope, $event) {
20+
function onClose(/* $modelValue, $inputValue, scope, $event */) {
2121
return true;
2222
}
2323

24-
function onOpen($modelValue, $inputValue, scope, $event) {
24+
function onOpen(/* $modelValue, $inputValue, scope, $event */) {
2525
return true;
2626
}
2727
//
@@ -37,8 +37,8 @@ describe('formlyMaterial - select type', () => {
3737
theme,
3838
label: 'test field',
3939
multiple: true,
40-
onClose: onClose,
41-
onOpen: onOpen,
40+
onClose,
41+
onOpen,
4242
options: [{
4343
name: 'first',
4444
nameUp: 'FIRST',

0 commit comments

Comments
 (0)