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
22
lib/process-services/mock/process/process-comments.mock.ts
Normal file
22
lib/process-services/mock/process/process-comments.mock.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let mockProcessInstanceComments = [
|
||||
{ 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'} }
|
||||
];
|
@@ -65,6 +65,19 @@ export let processEnded = new ProcessInstance({
|
||||
ended: '2016-11-11T03:37:30.010+0000'
|
||||
});
|
||||
|
||||
export let mockRunningProcess = new ProcessInstance({
|
||||
id: '123',
|
||||
name: 'Process 123',
|
||||
started: '2016-11-10T03:37:30.010+0000',
|
||||
startedBy: {
|
||||
id: 1001,
|
||||
firstName: 'Bob',
|
||||
lastName: 'Jones',
|
||||
email: 'bob@app.activiti.com'
|
||||
},
|
||||
ended: null
|
||||
});
|
||||
|
||||
export let exampleProcessNoName = new ProcessInstance({
|
||||
id: '123',
|
||||
name: null,
|
||||
|
@@ -19,6 +19,7 @@ export * from './process/process-instances-list.mock';
|
||||
export * from './process/process.service.mock';
|
||||
export * from './process/start-process.component.mock';
|
||||
export * from './process/process.model.mock';
|
||||
export * from './process/process-comments.mock';
|
||||
|
||||
export * from './task/start-task.mock';
|
||||
export * from './task/task-details.mock';
|
||||
|
Reference in New Issue
Block a user