Skip to content

Commit

Permalink
Resolve linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lane-formio committed Sep 5, 2024
1 parent 6b29e06 commit bfc2759
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/components/datagrid/DataGrid.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ describe('DataGrid Component', () => {
it('Should remove the corresponding row from the metadata when removing a row', (done) => {
Formio.createForm(document.createElement('div'), comp11)
.then((form) => {
const datagrid = form.getComponent('dataGrid');
const checkValue = (index, value) => {
assert.equal(datagrid.getValue()[index].select, value);
}
const datagrid = form.getComponent('dataGrid');
};
datagrid.addRow();
assert.equal(datagrid.getValue().length, 2);
const select = form.getComponent('dataGrid[1].select');
Expand All @@ -214,11 +214,11 @@ describe('DataGrid Component', () => {
const selectNew = form.getComponent('dataGrid[1].select');
assert.equal(selectNew.getView(), '<span>Entity</span>');
done();
}, 200)
}, 200)
}, 200);
}, 200);
})
.catch(done);
})
});

it('Should allow provide default value in row-groups model', function(done) {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/components/datagrid/fixtures/comp11.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ export default {
tableView: false
}
]
};
};
4 changes: 2 additions & 2 deletions src/components/day/Day.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export default class DayComponent extends Field {
if (part !== '') {
dateParts.push(part);
}
}
};

if (this.dayFirst) {
getNextPart(this.showDay, defaultValue ? defaultValue[DAY] : '');
Expand Down Expand Up @@ -639,7 +639,7 @@ export default class DayComponent extends Field {
}
const [DAY, MONTH, YEAR] = this.component.dayFirst ? [0, 1, 2] : [1, 0, 2];
const values = value.split('/');
if(values.length < 3){
if (values.length < 3) {
return true;
}
return (values[DAY] === '00' || values[MONTH] === '00' || values[YEAR] === '0000');
Expand Down
1 change: 0 additions & 1 deletion src/components/day/Day.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ describe('Day Component', () => {
comp1.fields.year.hide = false;
});


it('Should use the default day value if the day field is hidden', (done) => {
comp1.dayFirst = false;
comp1.defaultValue = '00/01/0000';
Expand Down
2 changes: 1 addition & 1 deletion src/components/radio/Radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class RadioComponent extends ListComponent {
: {
...classComp,
type: 'select',
}
};
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/selectboxes/SelectBoxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class SelectBoxesComponent extends RadioComponent {
...classComp,
dataType: 'string',
type: 'select',
}
};
}
};
}
Expand Down

0 comments on commit bfc2759

Please sign in to comment.