mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
@@ -15,4 +15,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export * from './src/ng2-activiti-processlist.component';
|
||||
export * from './src/components/ng2-activiti-processlist.component';
|
||||
|
@@ -57,7 +57,10 @@
|
||||
"core-js": "^2.4.0",
|
||||
"reflect-metadata": "^0.1.3",
|
||||
"rxjs": "5.0.0-beta.6",
|
||||
"zone.js": "^0.6.12"
|
||||
"zone.js": "^0.6.12",
|
||||
"ng2-translate": "2.2.2",
|
||||
"ng2-alfresco-core": "0.2.0",
|
||||
"ng2-alfresco-datatable": "0.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"angular-cli": "1.0.0-beta.9",
|
||||
|
@@ -21,7 +21,7 @@ import {
|
||||
TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
|
||||
TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS
|
||||
} from '@angular/platform-browser-dynamic/testing';
|
||||
import {Ng2ActivitiProcesslistComponent} from '../src/ng2-activiti-processlist.component';
|
||||
import {Ng2ActivitiProcesslistComponent} from '../../src/components/ng2-activiti-processlist.component';
|
||||
|
||||
describe('Basic Example test ng2-activiti-processlist', () => {
|
||||
setBaseTestProviders(TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS, TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS);
|
@@ -26,6 +26,6 @@ import { Component } from '@angular/core';
|
||||
}
|
||||
`
|
||||
],
|
||||
template: `<H1>Hello World Angular 2 ng-2-activiti-processlist</H1>`
|
||||
template: `<H1>Hello World Angular 2 ng2-activiti-processlist</H1>`
|
||||
})
|
||||
export class Ng2ActivitiProcesslistComponent {}
|
@@ -0,0 +1,51 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
import { ReflectiveInjector } from '@angular/core';
|
||||
import {
|
||||
it,
|
||||
describe,
|
||||
expect,
|
||||
beforeEach
|
||||
} from '@angular/core/testing';
|
||||
import {
|
||||
AlfrescoSettingsService
|
||||
} from 'ng2-alfresco-core';
|
||||
import { ActivitiProcessService } from './activiti-process-service.service';
|
||||
import { HTTP_PROVIDERS } from '@angular/http';
|
||||
|
||||
describe('ActivitiProcessService', () => {
|
||||
|
||||
let injector;
|
||||
let service: ActivitiProcessService;
|
||||
let settingsService: AlfrescoSettingsService;
|
||||
|
||||
beforeEach(() => {
|
||||
injector = ReflectiveInjector.resolveAndCreate([
|
||||
HTTP_PROVIDERS,
|
||||
AlfrescoSettingsService
|
||||
]);
|
||||
|
||||
settingsService = injector.get(AlfrescoSettingsService);
|
||||
service = new ActivitiProcessService(settingsService);
|
||||
});
|
||||
|
||||
it('should require node to get thumbnail url', () => {
|
||||
expect(null).toBeNull();
|
||||
});
|
||||
|
||||
});
|
@@ -0,0 +1,26 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
import {
|
||||
AlfrescoSettingsService
|
||||
} from 'ng2-alfresco-core';
|
||||
|
||||
export class ActivitiProcessService {
|
||||
|
||||
constructor(private alfrescoSettingsService: AlfrescoSettingsService) {
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user