mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
#1301 - fixed test on activiti form
This commit is contained in:
parent
12c4de2c1e
commit
e92abf99d9
@ -35,11 +35,10 @@ describe('ActivitiForm', () => {
|
||||
componentHandler = jasmine.createSpyObj('componentHandler', [
|
||||
'upgradeAllRegistered'
|
||||
]);
|
||||
visibilityService = jasmine.createSpyObj('WidgetVisibilityService', [
|
||||
'refreshVisibility', 'getTaskProcessVariable'
|
||||
]);
|
||||
window['componentHandler'] = componentHandler;
|
||||
|
||||
visibilityService = new WidgetVisibilityService(null);
|
||||
spyOn(visibilityService, 'refreshVisibility').and.stub();
|
||||
formService = new FormService(null, null);
|
||||
nodeService = new NodeService(null, null);
|
||||
formComponent = new ActivitiForm(formService, visibilityService, null, nodeService);
|
||||
@ -139,6 +138,7 @@ describe('ActivitiForm', () => {
|
||||
|
||||
it('should get form by task id on load', () => {
|
||||
spyOn(formComponent, 'getFormByTaskId').and.stub();
|
||||
spyOn(visibilityService, 'getTaskProcessVariable').and.returnValue(Observable.of({}));
|
||||
const taskId = '123';
|
||||
|
||||
formComponent.taskId = taskId;
|
||||
|
Loading…
x
Reference in New Issue
Block a user