mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
* Fixed failing unit tests on process-services. (#5080)
This commit is contained in:
committed by
Eugenio Romano
parent
b2966bc6f5
commit
30089f485f
@@ -23,6 +23,7 @@ import { CommentProcessService, setupTestBed } from '@alfresco/adf-core';
|
||||
|
||||
import { ProcessCommentsComponent } from './process-comments.component';
|
||||
import { ProcessTestingModule } from '../testing/process.testing.module';
|
||||
import { mockProcessInstanceComments } from '../mock/process/process-comments.mock';
|
||||
|
||||
describe('ProcessCommentsComponent', () => {
|
||||
|
||||
@@ -41,11 +42,7 @@ describe('ProcessCommentsComponent', () => {
|
||||
component = fixture.componentInstance;
|
||||
commentProcessService = TestBed.get(CommentProcessService);
|
||||
|
||||
getCommentsSpy = spyOn(commentProcessService, 'getProcessInstanceComments').and.returnValue(of([
|
||||
{ message: 'Test1', created: Date.now(), createdBy: {firstName: 'Admin', lastName: 'User'} },
|
||||
{ message: 'Test2', created: Date.now(), createdBy: {firstName: 'Admin', lastName: 'User'} },
|
||||
{ message: 'Test3', created: Date.now(), createdBy: {firstName: 'Admin', lastName: 'User'} }
|
||||
]));
|
||||
getCommentsSpy = spyOn(commentProcessService, 'getProcessInstanceComments').and.returnValue(of(mockProcessInstanceComments));
|
||||
});
|
||||
|
||||
it('should load comments when processInstanceId specified', () => {
|
||||
|
Reference in New Issue
Block a user