fix eslint warnigs for core project (#7506)

This commit is contained in:
Denys Vuika
2022-02-17 14:35:33 +00:00
committed by GitHub
parent 5b7f255eec
commit bca5a783ab
246 changed files with 5127 additions and 5065 deletions

View File

@@ -184,7 +184,7 @@ describe('CardViewBoolItemComponent', () => {
spyOn(cardViewUpdateService, 'update');
const property = { ... component.property };
component.changed(<MatCheckboxChange> { checked: true });
component.changed({ checked: true } as MatCheckboxChange);
expect(cardViewUpdateService.update).toHaveBeenCalledWith(property, true);
});
@@ -192,7 +192,7 @@ describe('CardViewBoolItemComponent', () => {
it('should update the property value after a changed', async () => {
component.property.value = true;
component.changed(<MatCheckboxChange> { checked: false });
component.changed({ checked: false } as MatCheckboxChange);
fixture.detectChanges();
await fixture.whenStable();

View File

@@ -40,7 +40,7 @@ export class CardViewBoolItemComponent extends BaseCardView<CardViewBoolItemMode
}
changed(change: MatCheckboxChange) {
this.cardViewUpdateService.update(<CardViewBoolItemModel> { ...this.property }, change.checked );
this.cardViewUpdateService.update({ ...this.property } as CardViewBoolItemModel, change.checked );
this.property.value = change.checked;
}
}