TSK-1163: removed dangling comment and fixed test
This commit is contained in:
parent
8f4e261679
commit
94d3ce4406
|
|
@ -115,7 +115,6 @@ export class AccessItemsManagementComponent implements OnInit, OnDestroy {
|
||||||
this.belongingGroups = accessIdsWithGroups.filter(item => item.accessId.includes(this.groupsKey));
|
this.belongingGroups = accessIdsWithGroups.filter(item => item.accessId.includes(this.groupsKey));
|
||||||
this.searchForAccessItemsWorkbaskets();
|
this.searchForAccessItemsWorkbaskets();
|
||||||
},
|
},
|
||||||
// new Key: ERROR_TYPES.FETCH_ERR
|
|
||||||
error => {
|
error => {
|
||||||
this.requestInProgressService.setRequestInProgress(false);
|
this.requestInProgressService.setRequestInProgress(false);
|
||||||
this.errorsService.updateError(ERROR_TYPES.FETCH_ERR, error);
|
this.errorsService.updateError(ERROR_TYPES.FETCH_ERR, error);
|
||||||
|
|
|
||||||
|
|
@ -89,9 +89,9 @@ describe('WorkbasketInformationComponent', () => {
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
expect(debugElement.querySelector('#wb-information')).toBeDefined();
|
expect(debugElement.querySelector('#wb-information')).toBeDefined();
|
||||||
expect(debugElement.querySelector('#wb-information > .panel-heading > h4').textContent.trim()).toBe('name');
|
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(() => {
|
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');
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -247,7 +247,6 @@ implements OnInit, OnChanges, OnDestroy {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
// new Key ERROR_TYPES.CREATE_ERR_2
|
|
||||||
this.errorsService.updateError(ERROR_TYPES.CREATE_ERR_2, error);
|
this.errorsService.updateError(ERROR_TYPES.CREATE_ERR_2, error);
|
||||||
this.requestInProgressService.setRequestInProgress(false);
|
this.requestInProgressService.setRequestInProgress(false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { ErrorModalComponent } from './error-modal.component';
|
import { ErrorModalComponent } from './error-modal.component';
|
||||||
|
|
||||||
describe('GeneralMessageModalComponent', () => {
|
describe('ErrorModalComponent', () => {
|
||||||
let component: ErrorModalComponent;
|
let component: ErrorModalComponent;
|
||||||
let fixture: ComponentFixture<ErrorModalComponent>;
|
let fixture: ComponentFixture<ErrorModalComponent>;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue