[KON-591] unittest adapted
diff --git a/src/app/pages/contacts/contacts-list/contacts-list.component.spec.ts b/src/app/pages/contacts/contacts-list/contacts-list.component.spec.ts index 3ed2d3e..e8ba642 100644 --- a/src/app/pages/contacts/contacts-list/contacts-list.component.spec.ts +++ b/src/app/pages/contacts/contacts-list/contacts-list.component.spec.ts
@@ -1,4 +1,3 @@ -import { ColumnApi } from 'ag-grid-community'; /******************************************************************************** * Copyright (c) 2020 Contributors to the Eclipse Foundation * @@ -14,6 +13,7 @@ import { ContactsListComponent } from '@pages/contacts/contacts-list/contacts-list.component'; import { Globals } from '@shared/constants/globals'; import { ModifiedContacts } from '@shared/models/modifiedContacts.model'; +import { ColumnApi } from 'ag-grid-community'; describe('ContactsListComponent', () => { let component: ContactsListComponent; @@ -243,11 +243,11 @@ expect((component as any)._deletionLockExceeded).toBeFalsy(); }); - it('checks if function showAdvancedDSGVOFilter() works', () => { + it('checks if function setDSGVOFilterAdvancedVisible() works', () => { const spy = spyOn(component as any, '_resetDSGVOFilter'); component.isDSGVOFilterAdvancedVisible = true; component.modifiedContacts.expiringDataInPast = true; - component.showAdvancedDSGVOFilter(); + component.setDSGVOFilterAdvancedVisible(); expect(component.isDSGVOFilterAdvancedVisible).toBeFalsy(); expect(spy).toHaveBeenCalled();