TSK-1163: removed dangling comment and fixed test

This commit is contained in:
Mustapha Zorgati 2020-03-23 07:07:25 +01:00
parent 8f4e261679
commit 94d3ce4406
4 changed files with 3 additions and 5 deletions

View File

@ -115,7 +115,6 @@ export class AccessItemsManagementComponent implements OnInit, OnDestroy {
this.belongingGroups = accessIdsWithGroups.filter(item => item.accessId.includes(this.groupsKey));
this.searchForAccessItemsWorkbaskets();
},
// new Key: ERROR_TYPES.FETCH_ERR
error => {
this.requestInProgressService.setRequestInProgress(false);
this.errorsService.updateError(ERROR_TYPES.FETCH_ERR, error);

View File

@ -89,9 +89,9 @@ describe('WorkbasketInformationComponent', () => {
fixture.detectChanges();
expect(debugElement.querySelector('#wb-information')).toBeDefined();
expect(debugElement.querySelector('#wb-information > .panel-heading > h4').textContent.trim()).toBe('name');
expect(debugElement.querySelectorAll('#wb-information > .panel-message > form').length).toBe(1);
expect(debugElement.querySelectorAll('#wb-information > .panel-body > form').length).toBe(1);
fixture.whenStable().then(() => {
expect(debugElement.querySelector('#wb-information > .panel-message > form > div > div > input ').value).toBe('keyModified');
expect(debugElement.querySelector('#wb-information > .panel-body > form > div > div > input ').value).toBe('keyModified');
});
}));

View File

@ -247,7 +247,6 @@ implements OnInit, OnChanges, OnDestroy {
}
},
error => {
// new Key ERROR_TYPES.CREATE_ERR_2
this.errorsService.updateError(ERROR_TYPES.CREATE_ERR_2, error);
this.requestInProgressService.setRequestInProgress(false);
}

View File

@ -2,7 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ErrorModalComponent } from './error-modal.component';
describe('GeneralMessageModalComponent', () => {
describe('ErrorModalComponent', () => {
let component: ErrorModalComponent;
let fixture: ComponentFixture<ErrorModalComponent>;