mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[DW-1486] form versioning and cloud service enhancements (#5248)
* support form versions retrieval * rework cloud services, reduce code duplication * revert app config changes * fix api spelling error * support task form versioning * turn TaskDetailsCloudModel into interface * remove commented code * fix test * update tests * remove useless provider declarations
This commit is contained in:
committed by
Eugenio Romano
parent
1f768eb22f
commit
3644ba8b7c
@@ -35,14 +35,11 @@ describe('ContentMetadataConfigFactory', () => {
|
||||
HttpClientModule
|
||||
],
|
||||
providers: [
|
||||
ContentMetadataConfigFactory,
|
||||
AppConfigService,
|
||||
{
|
||||
provide: LogService, useValue: {
|
||||
error: () => {
|
||||
error: () => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -53,7 +50,7 @@ describe('ContentMetadataConfigFactory', () => {
|
||||
|
||||
describe('get', () => {
|
||||
|
||||
let logService;
|
||||
let logService: LogService;
|
||||
|
||||
beforeEach(async(() => {
|
||||
logService = TestBed.get(LogService);
|
||||
|
@@ -43,10 +43,9 @@ describe('PropertyGroupTranslatorService', () => {
|
||||
providers: [
|
||||
{
|
||||
provide: LogService, useValue: {
|
||||
error: () => {
|
||||
error: () => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
@@ -53,8 +53,6 @@ describe('ShareDialogComponent', () => {
|
||||
ContentNodeShareModule
|
||||
],
|
||||
providers: [
|
||||
NodesApiService,
|
||||
SharedLinksApiService,
|
||||
{ provide: AppConfigService, useClass: AppConfigServiceMock },
|
||||
{ provide: NotificationService, useValue: notificationServiceMock },
|
||||
{ provide: MatDialogRef, useValue: { close: () => {}} },
|
||||
|
@@ -22,7 +22,7 @@ import { ComponentFixture } from '@angular/core/testing';
|
||||
import { Component } from '@angular/core';
|
||||
import { DOCUMENT } from '@angular/common';
|
||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||
import { setupTestBed, CoreModule, SharedLinksApiService } from '@alfresco/adf-core';
|
||||
import { setupTestBed, CoreModule } from '@alfresco/adf-core';
|
||||
import { ContentNodeShareModule } from './content-node-share.module';
|
||||
|
||||
@Component({
|
||||
@@ -60,9 +60,6 @@ describe('NodeSharedDirective', () => {
|
||||
],
|
||||
declarations: [
|
||||
NodeShareTestComponent
|
||||
],
|
||||
providers: [
|
||||
SharedLinksApiService
|
||||
]
|
||||
});
|
||||
|
||||
|
@@ -21,9 +21,7 @@ import { Component, DebugElement } from '@angular/core';
|
||||
|
||||
import { NodeLockDirective } from './node-lock.directive';
|
||||
import { Node } from '@alfresco/js-api';
|
||||
import { NodeActionsService } from '../document-list/services/node-actions.service';
|
||||
import { ContentNodeDialogService } from '../content-node-selector/content-node-dialog.service';
|
||||
import { DocumentListService } from '../document-list/services/document-list.service';
|
||||
import { CoreModule, setupTestBed } from '@alfresco/adf-core';
|
||||
|
||||
const fakeNode: Node = <Node> {
|
||||
@@ -49,11 +47,6 @@ describe('NodeLock Directive', () => {
|
||||
imports: [
|
||||
CoreModule.forRoot()
|
||||
],
|
||||
providers: [
|
||||
NodeActionsService,
|
||||
ContentNodeDialogService,
|
||||
DocumentListService
|
||||
],
|
||||
declarations: [
|
||||
TestComponent,
|
||||
NodeLockDirective
|
||||
|
@@ -34,8 +34,7 @@ describe('NodePermissionDialogService', () => {
|
||||
let contentService: ContentService;
|
||||
|
||||
setupTestBed({
|
||||
imports: [ContentTestingModule],
|
||||
providers: [NodePermissionService]
|
||||
imports: [ContentTestingModule]
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
Reference in New Issue
Block a user