mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-07 18:25:09 +00:00
Ivy compatible test modules (#5718)
* ivy compatible core unit tests * ivy compatible content tests * ivy compatible process tests * ivy compatible process cloud tests * ivy compatible insights tests * fix content test * fix content test
This commit is contained in:
parent
9f2faee027
commit
ae3ac440bc
@ -24,6 +24,7 @@ import { DocumentListComponent, DocumentListService } from '../document-list';
|
|||||||
import { BreadcrumbComponent } from './breadcrumb.component';
|
import { BreadcrumbComponent } from './breadcrumb.component';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('Breadcrumb', () => {
|
describe('Breadcrumb', () => {
|
||||||
|
|
||||||
@ -36,7 +37,10 @@ describe('Breadcrumb', () => {
|
|||||||
let documentListComponent: DocumentListComponent;
|
let documentListComponent: DocumentListComponent;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
providers : [{ provide: DocumentListService, useValue: documentListService }]
|
providers : [{ provide: DocumentListService, useValue: documentListService }]
|
||||||
});
|
});
|
||||||
|
@ -24,6 +24,7 @@ import { DocumentListComponent, DocumentListService } from '../document-list';
|
|||||||
import { DropdownBreadcrumbComponent } from './dropdown-breadcrumb.component';
|
import { DropdownBreadcrumbComponent } from './dropdown-breadcrumb.component';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('DropdownBreadcrumb', () => {
|
describe('DropdownBreadcrumb', () => {
|
||||||
|
|
||||||
@ -33,7 +34,10 @@ describe('DropdownBreadcrumb', () => {
|
|||||||
let documentListService: DocumentListService = jasmine.createSpyObj({'loadFolderByNodeId' : of(''), 'isCustomSourceService': false});
|
let documentListService: DocumentListService = jasmine.createSpyObj({'loadFolderByNodeId' : of(''), 'isCustomSourceService': false});
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
providers : [{ provide: DocumentListService, useValue: documentListService }]
|
providers : [{ provide: DocumentListService, useValue: documentListService }]
|
||||||
});
|
});
|
||||||
|
@ -23,6 +23,7 @@ import { ContentMetadataComponent } from '../content-metadata/content-metadata.c
|
|||||||
import { setupTestBed, AllowableOperationsEnum } from '@alfresco/adf-core';
|
import { setupTestBed, AllowableOperationsEnum } from '@alfresco/adf-core';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
import { SimpleChange } from '@angular/core';
|
import { SimpleChange } from '@angular/core';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ContentMetadataCardComponent', () => {
|
describe('ContentMetadataCardComponent', () => {
|
||||||
|
|
||||||
@ -32,7 +33,10 @@ describe('ContentMetadataCardComponent', () => {
|
|||||||
const preset = 'custom-preset';
|
const preset = 'custom-preset';
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -28,6 +28,7 @@ import {
|
|||||||
import { throwError, of } from 'rxjs';
|
import { throwError, of } from 'rxjs';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
import { mockGroupProperties } from './mock-data';
|
import { mockGroupProperties } from './mock-data';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ContentMetadataComponent', () => {
|
describe('ContentMetadataComponent', () => {
|
||||||
let component: ContentMetadataComponent;
|
let component: ContentMetadataComponent;
|
||||||
@ -40,7 +41,10 @@ describe('ContentMetadataComponent', () => {
|
|||||||
const preset = 'custom-preset';
|
const preset = 'custom-preset';
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
providers: [{ provide: LogService, useValue: { error: jasmine.createSpy('error') } }]
|
providers: [{ provide: LogService, useValue: { error: jasmine.createSpy('error') } }]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ import { ContentTestingModule } from '../../testing/content.testing.module';
|
|||||||
import { ContentMetadataService } from './content-metadata.service';
|
import { ContentMetadataService } from './content-metadata.service';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { PropertyGroup } from '../interfaces/property-group.interface';
|
import { PropertyGroup } from '../interfaces/property-group.interface';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ContentMetaDataService', () => {
|
describe('ContentMetaDataService', () => {
|
||||||
|
|
||||||
@ -47,7 +48,10 @@ describe('ContentMetaDataService', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
function setConfig(presetName, presetConfig) {
|
function setConfig(presetName, presetConfig) {
|
||||||
|
@ -22,6 +22,7 @@ import { of } from 'rxjs';
|
|||||||
import { ClassesApi } from '@alfresco/js-api';
|
import { ClassesApi } from '@alfresco/js-api';
|
||||||
import { PropertyGroup } from '../interfaces/content-metadata.interfaces';
|
import { PropertyGroup } from '../interfaces/content-metadata.interfaces';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('PropertyDescriptorLoaderService', () => {
|
describe('PropertyDescriptorLoaderService', () => {
|
||||||
|
|
||||||
@ -29,7 +30,10 @@ describe('PropertyDescriptorLoaderService', () => {
|
|||||||
let classesApi: ClassesApi;
|
let classesApi: ClassesApi;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -29,6 +29,7 @@ import {
|
|||||||
setupTestBed
|
setupTestBed
|
||||||
} from '@alfresco/adf-core';
|
} from '@alfresco/adf-core';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('PropertyGroupTranslatorService', () => {
|
describe('PropertyGroupTranslatorService', () => {
|
||||||
|
|
||||||
@ -40,7 +41,10 @@ describe('PropertyGroupTranslatorService', () => {
|
|||||||
let logService: LogService;
|
let logService: LogService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -23,6 +23,7 @@ import { ContentNodeDialogService } from './content-node-dialog.service';
|
|||||||
import { MatDialog } from '@angular/material';
|
import { MatDialog } from '@angular/material';
|
||||||
import { Subject, of } from 'rxjs';
|
import { Subject, of } from 'rxjs';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
const fakeNodeEntry: NodeEntry = <NodeEntry> {
|
const fakeNodeEntry: NodeEntry = <NodeEntry> {
|
||||||
entry: {
|
entry: {
|
||||||
@ -67,7 +68,10 @@ describe('ContentNodeDialogService', () => {
|
|||||||
let afterOpenObservable: Subject<any>;
|
let afterOpenObservable: Subject<any>;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -30,6 +30,7 @@ import { DocumentListComponent } from '../document-list/components/document-list
|
|||||||
import { DropdownSitesComponent } from '../site-dropdown/sites-dropdown.component';
|
import { DropdownSitesComponent } from '../site-dropdown/sites-dropdown.component';
|
||||||
import { CustomResourcesService } from '../document-list/services/custom-resources.service';
|
import { CustomResourcesService } from '../document-list/services/custom-resources.service';
|
||||||
import { ShareDataRow } from '../document-list';
|
import { ShareDataRow } from '../document-list';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
const ONE_FOLDER_RESULT = {
|
const ONE_FOLDER_RESULT = {
|
||||||
list: {
|
list: {
|
||||||
@ -73,7 +74,10 @@ describe('ContentNodeSelectorComponent', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ import { ContentTestingModule } from '../testing/content.testing.module';
|
|||||||
import { DocumentListService } from '../document-list/services/document-list.service';
|
import { DocumentListService } from '../document-list/services/document-list.service';
|
||||||
import { DocumentListComponent } from '../document-list/components/document-list.component';
|
import { DocumentListComponent } from '../document-list/components/document-list.component';
|
||||||
import { ShareDataRow } from '../document-list';
|
import { ShareDataRow } from '../document-list';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ContentNodeSelectorDialogComponent', () => {
|
describe('ContentNodeSelectorDialogComponent', () => {
|
||||||
|
|
||||||
@ -43,7 +44,10 @@ describe('ContentNodeSelectorDialogComponent', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: MAT_DIALOG_DATA, useValue: data }
|
{ provide: MAT_DIALOG_DATA, useValue: data }
|
||||||
],
|
],
|
||||||
|
@ -20,6 +20,7 @@ import { QueryBody } from '@alfresco/js-api';
|
|||||||
import { SearchService, setupTestBed } from '@alfresco/adf-core';
|
import { SearchService, setupTestBed } from '@alfresco/adf-core';
|
||||||
import { ContentNodeSelectorService } from './content-node-selector.service';
|
import { ContentNodeSelectorService } from './content-node-selector.service';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
class SearchServiceMock {
|
class SearchServiceMock {
|
||||||
public query: QueryBody;
|
public query: QueryBody;
|
||||||
@ -35,7 +36,10 @@ describe('ContentNodeSelectorService', () => {
|
|||||||
let search: SearchServiceMock;
|
let search: SearchServiceMock;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: SearchService, useClass: SearchServiceMock }
|
{ provide: SearchService, useClass: SearchServiceMock }
|
||||||
]
|
]
|
||||||
|
@ -24,14 +24,12 @@ import {
|
|||||||
NodesApiService,
|
NodesApiService,
|
||||||
NotificationService,
|
NotificationService,
|
||||||
RenditionsService,
|
RenditionsService,
|
||||||
AppConfigService,
|
AppConfigService
|
||||||
AppConfigServiceMock,
|
|
||||||
AlfrescoApiService,
|
|
||||||
AlfrescoApiServiceMock
|
|
||||||
} from '@alfresco/adf-core';
|
} from '@alfresco/adf-core';
|
||||||
import { ShareDialogComponent } from './content-node-share.dialog';
|
import { ShareDialogComponent } from './content-node-share.dialog';
|
||||||
import moment from 'moment-es6';
|
import moment from 'moment-es6';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ShareDialogComponent', () => {
|
describe('ShareDialogComponent', () => {
|
||||||
let node;
|
let node;
|
||||||
@ -48,11 +46,10 @@ describe('ShareDialogComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
ContentTestingModule
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
|
||||||
{ provide: AppConfigService, useClass: AppConfigServiceMock },
|
|
||||||
{ provide: NotificationService, useValue: notificationServiceMock },
|
{ provide: NotificationService, useValue: notificationServiceMock },
|
||||||
{ provide: MatDialogRef, useValue: { close: () => {}} },
|
{ provide: MatDialogRef, useValue: { close: () => {}} },
|
||||||
{ provide: MAT_DIALOG_DATA, useValue: {} }
|
{ provide: MAT_DIALOG_DATA, useValue: {} }
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
||||||
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
@ -23,6 +22,7 @@ import { DOCUMENT } from '@angular/common';
|
|||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
import { setupTestBed, CoreModule } from '@alfresco/adf-core';
|
import { setupTestBed, CoreModule } from '@alfresco/adf-core';
|
||||||
import { ContentNodeShareModule } from './content-node-share.module';
|
import { ContentNodeShareModule } from './content-node-share.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-node-share-test-component',
|
selector: 'adf-node-share-test-component',
|
||||||
@ -52,7 +52,7 @@ describe('NodeSharedDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
NoopAnimationsModule,
|
TranslateModule.forRoot(),
|
||||||
CoreModule.forRoot(),
|
CoreModule.forRoot(),
|
||||||
ContentTestingModule,
|
ContentTestingModule,
|
||||||
ContentNodeShareModule
|
ContentNodeShareModule
|
||||||
|
@ -40,53 +40,6 @@ import { ContentMetadataModule } from './content-metadata/content-metadata.modul
|
|||||||
import { PermissionManagerModule } from './permission-manager/permission-manager.module';
|
import { PermissionManagerModule } from './permission-manager/permission-manager.module';
|
||||||
import { TreeViewModule } from './tree-view/tree-view.module';
|
import { TreeViewModule } from './tree-view/tree-view.module';
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
CoreModule,
|
|
||||||
SocialModule,
|
|
||||||
TagModule,
|
|
||||||
CommonModule,
|
|
||||||
WebScriptModule,
|
|
||||||
FormsModule,
|
|
||||||
ReactiveFormsModule,
|
|
||||||
DialogModule,
|
|
||||||
SearchModule,
|
|
||||||
DocumentListModule,
|
|
||||||
UploadModule,
|
|
||||||
MaterialModule,
|
|
||||||
SitesDropdownModule,
|
|
||||||
BreadcrumbModule,
|
|
||||||
ContentNodeSelectorModule,
|
|
||||||
ContentNodeShareModule,
|
|
||||||
ContentMetadataModule,
|
|
||||||
FolderDirectiveModule,
|
|
||||||
ContentDirectiveModule,
|
|
||||||
PermissionManagerModule,
|
|
||||||
VersionManagerModule,
|
|
||||||
TreeViewModule
|
|
||||||
],
|
|
||||||
exports: [
|
|
||||||
SocialModule,
|
|
||||||
TagModule,
|
|
||||||
WebScriptModule,
|
|
||||||
DocumentListModule,
|
|
||||||
UploadModule,
|
|
||||||
SearchModule,
|
|
||||||
SitesDropdownModule,
|
|
||||||
BreadcrumbModule,
|
|
||||||
ContentNodeSelectorModule,
|
|
||||||
ContentNodeShareModule,
|
|
||||||
ContentMetadataModule,
|
|
||||||
DialogModule,
|
|
||||||
FolderDirectiveModule,
|
|
||||||
ContentDirectiveModule,
|
|
||||||
PermissionManagerModule,
|
|
||||||
VersionManagerModule,
|
|
||||||
TreeViewModule
|
|
||||||
]
|
|
||||||
})
|
|
||||||
export class ContentModuleLazy {}
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CoreModule,
|
CoreModule,
|
||||||
@ -161,7 +114,7 @@ export class ContentModule {
|
|||||||
|
|
||||||
static forChild(): ModuleWithProviders {
|
static forChild(): ModuleWithProviders {
|
||||||
return {
|
return {
|
||||||
ngModule: ContentModuleLazy
|
ngModule: ContentModule
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@ import { setupTestBed } from '@alfresco/adf-core';
|
|||||||
import { ConfirmDialogComponent } from './confirm.dialog';
|
import { ConfirmDialogComponent } from './confirm.dialog';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('Confirm Dialog Component', () => {
|
describe('Confirm Dialog Component', () => {
|
||||||
let fixture: ComponentFixture<ConfirmDialogComponent>;
|
let fixture: ComponentFixture<ConfirmDialogComponent>;
|
||||||
@ -38,7 +39,10 @@ describe('Confirm Dialog Component', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: MatDialogRef, useValue: dialogRef },
|
{ provide: MatDialogRef, useValue: dialogRef },
|
||||||
{ provide: MAT_DIALOG_DATA, useValue: data }
|
{ provide: MAT_DIALOG_DATA, useValue: data }
|
||||||
|
@ -22,6 +22,7 @@ import { FolderDialogComponent } from './folder.dialog';
|
|||||||
import { of, throwError } from 'rxjs';
|
import { of, throwError } from 'rxjs';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('FolderDialogComponent', () => {
|
describe('FolderDialogComponent', () => {
|
||||||
|
|
||||||
@ -33,7 +34,10 @@ describe('FolderDialogComponent', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: MatDialogRef, useValue: dialogRef }
|
{ provide: MatDialogRef, useValue: dialogRef }
|
||||||
]
|
]
|
||||||
|
@ -21,6 +21,7 @@ import { NO_ERRORS_SCHEMA } from '@angular/core';
|
|||||||
import { MatDialogRef } from '@angular/material';
|
import { MatDialogRef } from '@angular/material';
|
||||||
import { AlfrescoApiService, setupTestBed } from '@alfresco/adf-core';
|
import { AlfrescoApiService, setupTestBed } from '@alfresco/adf-core';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('LibraryDialogComponent', () => {
|
describe('LibraryDialogComponent', () => {
|
||||||
let fixture;
|
let fixture;
|
||||||
@ -34,6 +35,7 @@ describe('LibraryDialogComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
@ -23,6 +23,7 @@ import { AlfrescoApiService, setupTestBed } from '@alfresco/adf-core';
|
|||||||
import { NodeBodyLock } from '@alfresco/js-api';
|
import { NodeBodyLock } from '@alfresco/js-api';
|
||||||
import { NodeLockDialogComponent } from './node-lock.dialog';
|
import { NodeLockDialogComponent } from './node-lock.dialog';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('NodeLockDialogComponent', () => {
|
describe('NodeLockDialogComponent', () => {
|
||||||
|
|
||||||
@ -35,7 +36,10 @@ describe('NodeLockDialogComponent', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: MatDialogRef, useValue: dialogRef }
|
{ provide: MatDialogRef, useValue: dialogRef }
|
||||||
]
|
]
|
||||||
|
@ -24,6 +24,7 @@ import { Node } from '@alfresco/js-api';
|
|||||||
import { ContentNodeDialogService } from '../content-node-selector/content-node-dialog.service';
|
import { ContentNodeDialogService } from '../content-node-selector/content-node-dialog.service';
|
||||||
import { setupTestBed } from '@alfresco/adf-core';
|
import { setupTestBed } from '@alfresco/adf-core';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
const fakeNode: Node = <Node> {
|
const fakeNode: Node = <Node> {
|
||||||
id: 'fake',
|
id: 'fake',
|
||||||
@ -46,6 +47,7 @@ describe('NodeLock Directive', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -22,6 +22,7 @@ import { ContentActionModel } from './../../models/content-action.model';
|
|||||||
import { DocumentListComponent } from './../document-list.component';
|
import { DocumentListComponent } from './../document-list.component';
|
||||||
import { ContentActionListComponent } from './content-action-list.component';
|
import { ContentActionListComponent } from './content-action-list.component';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ContentColumnList', () => {
|
describe('ContentColumnList', () => {
|
||||||
|
|
||||||
@ -29,7 +30,10 @@ describe('ContentColumnList', () => {
|
|||||||
let actionList: ContentActionListComponent;
|
let actionList: ContentActionListComponent;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ import { DocumentListComponent } from './../document-list.component';
|
|||||||
import { ContentActionListComponent } from './content-action-list.component';
|
import { ContentActionListComponent } from './content-action-list.component';
|
||||||
import { ContentActionComponent } from './content-action.component';
|
import { ContentActionComponent } from './content-action.component';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ContentAction', () => {
|
describe('ContentAction', () => {
|
||||||
|
|
||||||
@ -39,7 +40,10 @@ describe('ContentAction', () => {
|
|||||||
let nodeActionsService: NodeActionsService;
|
let nodeActionsService: NodeActionsService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ import { ContentTestingModule } from '../../testing/content.testing.module';
|
|||||||
import { NodeEntry } from '@alfresco/js-api';
|
import { NodeEntry } from '@alfresco/js-api';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { DocumentListModule } from '../document-list.module';
|
import { DocumentListModule } from '../document-list.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('DocumentList', () => {
|
describe('DocumentList', () => {
|
||||||
|
|
||||||
@ -63,7 +64,10 @@ describe('DocumentList', () => {
|
|||||||
let spyFolderNode: any;
|
let spyFolderNode: any;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1512,6 +1516,7 @@ describe('DocumentListComponent rendering', () => {
|
|||||||
setupTestBed({
|
setupTestBed({
|
||||||
declarations: [CustomTemplateComponent],
|
declarations: [CustomTemplateComponent],
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule,
|
ContentTestingModule,
|
||||||
DataTableModule,
|
DataTableModule,
|
||||||
DocumentListModule
|
DocumentListModule
|
||||||
|
@ -20,6 +20,7 @@ import { NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|||||||
import { setupTestBed } from '@alfresco/adf-core';
|
import { setupTestBed } from '@alfresco/adf-core';
|
||||||
import { LibraryNameColumnComponent } from './library-name-column.component';
|
import { LibraryNameColumnComponent } from './library-name-column.component';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('LibraryNameColumnComponent', () => {
|
describe('LibraryNameColumnComponent', () => {
|
||||||
let fixture: ComponentFixture<LibraryNameColumnComponent>;
|
let fixture: ComponentFixture<LibraryNameColumnComponent>;
|
||||||
@ -27,7 +28,10 @@ describe('LibraryNameColumnComponent', () => {
|
|||||||
let node;
|
let node;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -20,13 +20,17 @@ import { LibraryRoleColumnComponent } from './library-role-column.component';
|
|||||||
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
||||||
import { NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
import { NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('LibraryNameColumnComponent', () => {
|
describe('LibraryNameColumnComponent', () => {
|
||||||
let fixture: ComponentFixture<LibraryRoleColumnComponent>;
|
let fixture: ComponentFixture<LibraryRoleColumnComponent>;
|
||||||
let component: LibraryRoleColumnComponent;
|
let component: LibraryRoleColumnComponent;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ import { ShareDataRow } from './share-data-row.model';
|
|||||||
import { ShareDataTableAdapter } from './share-datatable-adapter';
|
import { ShareDataTableAdapter } from './share-datatable-adapter';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ShareDataTableAdapter', () => {
|
describe('ShareDataTableAdapter', () => {
|
||||||
|
|
||||||
@ -28,7 +29,10 @@ describe('ShareDataTableAdapter', () => {
|
|||||||
let contentService: ContentService;
|
let contentService: ContentService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -25,6 +25,7 @@ import { DocumentListService } from './document-list.service';
|
|||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('DocumentActionsService', () => {
|
describe('DocumentActionsService', () => {
|
||||||
|
|
||||||
@ -33,6 +34,7 @@ describe('DocumentActionsService', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
@ -21,6 +21,7 @@ import { DocumentListService } from './document-list.service';
|
|||||||
import { CustomResourcesService } from './custom-resources.service';
|
import { CustomResourcesService } from './custom-resources.service';
|
||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
declare let jasmine: any;
|
declare let jasmine: any;
|
||||||
|
|
||||||
@ -65,6 +66,7 @@ describe('DocumentListService', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -23,6 +23,7 @@ import { ContentActionHandler } from '../models/content-action.model';
|
|||||||
import { DocumentListService } from './document-list.service';
|
import { DocumentListService } from './document-list.service';
|
||||||
import { FolderActionsService } from './folder-actions.service';
|
import { FolderActionsService } from './folder-actions.service';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('FolderActionsService', () => {
|
describe('FolderActionsService', () => {
|
||||||
|
|
||||||
@ -31,6 +32,7 @@ describe('FolderActionsService', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -24,6 +24,7 @@ import { ContentNodeDialogService } from '../../content-node-selector/content-no
|
|||||||
import { of, throwError } from 'rxjs';
|
import { of, throwError } from 'rxjs';
|
||||||
import { MatDialogRef } from '@angular/material';
|
import { MatDialogRef } from '@angular/material';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
const fakeNode: Node = <Node> {
|
const fakeNode: Node = <Node> {
|
||||||
id: 'fake'
|
id: 'fake'
|
||||||
@ -40,6 +41,7 @@ describe('NodeActionsService', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
@ -25,6 +25,7 @@ import { ContentService, setupTestBed } from '@alfresco/adf-core';
|
|||||||
import { FolderCreateDirective } from './folder-create.directive';
|
import { FolderCreateDirective } from './folder-create.directive';
|
||||||
import { Node } from '@alfresco/js-api';
|
import { Node } from '@alfresco/js-api';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: `
|
template: `
|
||||||
@ -63,6 +64,7 @@ describe('FolderCreateDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -25,6 +25,7 @@ import { ContentService, setupTestBed } from '@alfresco/adf-core';
|
|||||||
import { FolderEditDirective } from './folder-edit.directive';
|
import { FolderEditDirective } from './folder-edit.directive';
|
||||||
import { Node } from '@alfresco/js-api';
|
import { Node } from '@alfresco/js-api';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: '<div [adf-edit-folder]="folder" (success)="success($event)" title="edit-title"></div>'
|
template: '<div [adf-edit-folder]="folder" (success)="success($event)" title="edit-title"></div>'
|
||||||
@ -52,6 +53,7 @@ describe('FolderEditDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -27,6 +27,7 @@ import { Subject } from 'rxjs';
|
|||||||
import { AddPermissionDialogData } from './add-permission-dialog-data.interface';
|
import { AddPermissionDialogData } from './add-permission-dialog-data.interface';
|
||||||
import { fakeAuthorityResults } from '../../../mock/add-permission.component.mock';
|
import { fakeAuthorityResults } from '../../../mock/add-permission.component.mock';
|
||||||
import { AddPermissionPanelComponent } from './add-permission-panel.component';
|
import { AddPermissionPanelComponent } from './add-permission-panel.component';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('AddPermissionDialog', () => {
|
describe('AddPermissionDialog', () => {
|
||||||
|
|
||||||
@ -42,7 +43,10 @@ describe('AddPermissionDialog', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: MatDialogRef, useValue: dialogRef },
|
{ provide: MatDialogRef, useValue: dialogRef },
|
||||||
{ provide: MAT_DIALOG_DATA, useValue: data }
|
{ provide: MAT_DIALOG_DATA, useValue: data }
|
||||||
|
@ -23,6 +23,7 @@ import { of } from 'rxjs';
|
|||||||
import { fakeAuthorityListResult, fakeNameListResult } from '../../../mock/add-permission.component.mock';
|
import { fakeAuthorityListResult, fakeNameListResult } from '../../../mock/add-permission.component.mock';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
import { DebugElement } from '@angular/core';
|
import { DebugElement } from '@angular/core';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('AddPermissionPanelComponent', () => {
|
describe('AddPermissionPanelComponent', () => {
|
||||||
|
|
||||||
@ -33,7 +34,10 @@ describe('AddPermissionPanelComponent', () => {
|
|||||||
let debugElement: DebugElement;
|
let debugElement: DebugElement;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -25,6 +25,7 @@ import { fakeAuthorityResults } from '../../../mock/add-permission.component.moc
|
|||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
import { NodePermissionService } from '../../services/node-permission.service';
|
import { NodePermissionService } from '../../services/node-permission.service';
|
||||||
import { Node } from '@alfresco/js-api';
|
import { Node } from '@alfresco/js-api';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('AddPermissionComponent', () => {
|
describe('AddPermissionComponent', () => {
|
||||||
|
|
||||||
@ -35,6 +36,7 @@ describe('AddPermissionComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -20,6 +20,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|||||||
import { NodesApiService, setupTestBed } from '@alfresco/adf-core';
|
import { NodesApiService, setupTestBed } from '@alfresco/adf-core';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
const fakeNodeWithInherit: any = { id: 'fake-id', permissions : {isInheritanceEnabled : true}, allowableOperations: ['updatePermissions']};
|
const fakeNodeWithInherit: any = { id: 'fake-id', permissions : {isInheritanceEnabled : true}, allowableOperations: ['updatePermissions']};
|
||||||
const fakeNodeNoInherit: any = { id: 'fake-id', permissions : {isInheritanceEnabled : false}, allowableOperations: ['updatePermissions']};
|
const fakeNodeNoInherit: any = { id: 'fake-id', permissions : {isInheritanceEnabled : false}, allowableOperations: ['updatePermissions']};
|
||||||
@ -34,6 +35,7 @@ describe('InheritPermissionDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -29,6 +29,7 @@ import { fakeNodeWithPermissions,
|
|||||||
fakeNodeWithoutPermissions,
|
fakeNodeWithoutPermissions,
|
||||||
fakeEmptyResponse } from '../../../mock/permission-list.component.mock';
|
fakeEmptyResponse } from '../../../mock/permission-list.component.mock';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('PermissionDisplayComponent', () => {
|
describe('PermissionDisplayComponent', () => {
|
||||||
|
|
||||||
@ -40,7 +41,10 @@ describe('PermissionDisplayComponent', () => {
|
|||||||
let searchApiService: SearchService;
|
let searchApiService: SearchService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -23,6 +23,7 @@ import { Subject, of, throwError } from 'rxjs';
|
|||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
import { NodePermissionService } from './node-permission.service';
|
import { NodePermissionService } from './node-permission.service';
|
||||||
import { Node } from '@alfresco/js-api';
|
import { Node } from '@alfresco/js-api';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('NodePermissionDialogService', () => {
|
describe('NodePermissionDialogService', () => {
|
||||||
|
|
||||||
@ -34,7 +35,10 @@ describe('NodePermissionDialogService', () => {
|
|||||||
let contentService: ContentService;
|
let contentService: ContentService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -24,6 +24,7 @@ import { fakeEmptyResponse, fakeNodeWithOnlyLocally, fakeSiteRoles, fakeSiteNode
|
|||||||
fakeNodeToRemovePermission, fakeNodeWithoutPermissions } from '../../mock/permission-list.component.mock';
|
fakeNodeToRemovePermission, fakeNodeWithoutPermissions } from '../../mock/permission-list.component.mock';
|
||||||
import { fakeAuthorityResults } from '../../mock/add-permission.component.mock';
|
import { fakeAuthorityResults } from '../../mock/add-permission.component.mock';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('NodePermissionService', () => {
|
describe('NodePermissionService', () => {
|
||||||
|
|
||||||
@ -33,6 +34,7 @@ describe('NodePermissionService', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -22,13 +22,17 @@ import { ContentTestingModule } from '../../../testing/content.testing.module';
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { sizeOptions, stepOne, stepThree } from '../../../mock';
|
import { sizeOptions, stepOne, stepThree } from '../../../mock';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('SearchCheckListComponent', () => {
|
describe('SearchCheckListComponent', () => {
|
||||||
let fixture: ComponentFixture<SearchCheckListComponent>;
|
let fixture: ComponentFixture<SearchCheckListComponent>;
|
||||||
let component: SearchCheckListComponent;
|
let component: SearchCheckListComponent;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ ContentTestingModule ]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -21,6 +21,7 @@ import { TestBed, ComponentFixture } from '@angular/core/testing';
|
|||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { SelectedBucket } from '../search-filter/search-filter.component';
|
import { SelectedBucket } from '../search-filter/search-filter.component';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-test-component',
|
selector: 'adf-test-component',
|
||||||
@ -45,6 +46,7 @@ describe('SearchChipListComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -29,6 +29,7 @@ import { noResult, results } from '../../mock';
|
|||||||
import { SearchControlComponent } from './search-control.component';
|
import { SearchControlComponent } from './search-control.component';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: `
|
template: `
|
||||||
@ -65,6 +66,7 @@ describe('SearchControlComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -20,6 +20,7 @@ import { MomentDateAdapter, setupTestBed } from '@alfresco/adf-core';
|
|||||||
import { DateAdapter } from '@angular/material/core';
|
import { DateAdapter } from '@angular/material/core';
|
||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
declare let moment: any;
|
declare let moment: any;
|
||||||
|
|
||||||
@ -34,6 +35,7 @@ describe('SearchDateRangeComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -37,6 +37,7 @@ import {
|
|||||||
stepThree,
|
stepThree,
|
||||||
stepTwo
|
stepTwo
|
||||||
} from '../../../mock';
|
} from '../../../mock';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('SearchFilterComponent', () => {
|
describe('SearchFilterComponent', () => {
|
||||||
let fixture: ComponentFixture<SearchFilterComponent>;
|
let fixture: ComponentFixture<SearchFilterComponent>;
|
||||||
@ -49,6 +50,7 @@ describe('SearchFilterComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
@ -21,14 +21,18 @@ import { SearchRadioComponent } from './search-radio.component';
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { setupTestBed } from '@alfresco/adf-core';
|
import { setupTestBed } from '@alfresco/adf-core';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('SearchRadioComponent', () => {
|
describe('SearchRadioComponent', () => {
|
||||||
let fixture: ComponentFixture<SearchRadioComponent>;
|
let fixture: ComponentFixture<SearchRadioComponent>;
|
||||||
let component: SearchRadioComponent;
|
let component: SearchRadioComponent;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ ContentTestingModule ]
|
imports: [
|
||||||
});
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(SearchRadioComponent);
|
fixture = TestBed.createComponent(SearchRadioComponent);
|
||||||
|
@ -20,6 +20,7 @@ import { SearchSliderComponent } from './search-slider.component';
|
|||||||
import { setupTestBed } from '@alfresco/adf-core';
|
import { setupTestBed } from '@alfresco/adf-core';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('SearchSliderComponent', () => {
|
describe('SearchSliderComponent', () => {
|
||||||
let fixture: ComponentFixture<SearchSliderComponent>;
|
let fixture: ComponentFixture<SearchSliderComponent>;
|
||||||
@ -27,6 +28,7 @@ describe('SearchSliderComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -19,13 +19,17 @@ import { SearchTextComponent } from './search-text.component';
|
|||||||
import { setupTestBed } from '@alfresco/adf-core';
|
import { setupTestBed } from '@alfresco/adf-core';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('SearchTextComponent', () => {
|
describe('SearchTextComponent', () => {
|
||||||
let fixture: ComponentFixture<SearchTextComponent>;
|
let fixture: ComponentFixture<SearchTextComponent>;
|
||||||
let component: SearchTextComponent;
|
let component: SearchTextComponent;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ ContentTestingModule ]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -20,6 +20,7 @@ import { SearchService, setupTestBed } from '@alfresco/adf-core';
|
|||||||
import { differentResult, result, SimpleSearchTestComponent } from '../../mock';
|
import { differentResult, result, SimpleSearchTestComponent } from '../../mock';
|
||||||
import { of, throwError } from 'rxjs';
|
import { of, throwError } from 'rxjs';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('SearchComponent', () => {
|
describe('SearchComponent', () => {
|
||||||
|
|
||||||
@ -29,6 +30,7 @@ describe('SearchComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
declarations: [SimpleSearchTestComponent]
|
declarations: [SimpleSearchTestComponent]
|
||||||
|
@ -28,6 +28,7 @@ import { getFakeSitePaging,
|
|||||||
getFakeSitePagingWithMembers
|
getFakeSitePagingWithMembers
|
||||||
} from '../mock';
|
} from '../mock';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
const customSiteList = {
|
const customSiteList = {
|
||||||
'list': {
|
'list': {
|
||||||
@ -58,6 +59,7 @@ describe('DropdownSitesComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -22,6 +22,7 @@ import { setupTestBed } from '@alfresco/adf-core';
|
|||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { RatingService } from './services/rating.service';
|
import { RatingService } from './services/rating.service';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('Like component', () => {
|
describe('Like component', () => {
|
||||||
|
|
||||||
@ -31,7 +32,10 @@ describe('Like component', () => {
|
|||||||
let service: RatingService;
|
let service: RatingService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
|
@ -22,6 +22,7 @@ import { setupTestBed } from '@alfresco/adf-core';
|
|||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { RatingService } from './services/rating.service';
|
import { RatingService } from './services/rating.service';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('Rating component', () => {
|
describe('Rating component', () => {
|
||||||
|
|
||||||
@ -31,7 +32,10 @@ describe('Rating component', () => {
|
|||||||
let service: RatingService;
|
let service: RatingService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -19,6 +19,7 @@ import { TestBed } from '@angular/core/testing';
|
|||||||
import { setupTestBed } from '@alfresco/adf-core';
|
import { setupTestBed } from '@alfresco/adf-core';
|
||||||
import { RatingService } from './rating.service';
|
import { RatingService } from './rating.service';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
declare let jasmine: any;
|
declare let jasmine: any;
|
||||||
|
|
||||||
@ -27,7 +28,10 @@ describe('Rating service', () => {
|
|||||||
let service;
|
let service;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -19,6 +19,7 @@ import { setupTestBed } from '@alfresco/adf-core';
|
|||||||
import { TagService } from './tag.service';
|
import { TagService } from './tag.service';
|
||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
declare let jasmine: any;
|
declare let jasmine: any;
|
||||||
|
|
||||||
@ -27,7 +28,10 @@ describe('TagService', () => {
|
|||||||
let service: TagService;
|
let service: TagService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -19,6 +19,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|||||||
import { setupTestBed } from '@alfresco/adf-core';
|
import { setupTestBed } from '@alfresco/adf-core';
|
||||||
import { TagActionsComponent } from './tag-actions.component';
|
import { TagActionsComponent } from './tag-actions.component';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
declare let jasmine: any;
|
declare let jasmine: any;
|
||||||
|
|
||||||
@ -29,7 +30,10 @@ describe('TagActionsComponent', () => {
|
|||||||
let element: HTMLElement;
|
let element: HTMLElement;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -21,6 +21,7 @@ import { TagService } from './services/tag.service';
|
|||||||
import { TagListComponent } from '././tag-list.component';
|
import { TagListComponent } from '././tag-list.component';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('TagList', () => {
|
describe('TagList', () => {
|
||||||
|
|
||||||
@ -47,7 +48,10 @@ describe('TagList', () => {
|
|||||||
let tagService: TagService;
|
let tagService: TagService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -21,6 +21,7 @@ import { TagNodeListComponent } from './tag-node-list.component';
|
|||||||
import { TagService } from './services/tag.service';
|
import { TagService } from './services/tag.service';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('TagNodeList', () => {
|
describe('TagNodeList', () => {
|
||||||
|
|
||||||
@ -47,7 +48,10 @@ describe('TagNodeList', () => {
|
|||||||
let tagService: TagService;
|
let tagService: TagService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -36,9 +36,9 @@ import { TranslateModule } from '@ngx-translate/core';
|
|||||||
imports: [
|
imports: [
|
||||||
NoopAnimationsModule,
|
NoopAnimationsModule,
|
||||||
RouterTestingModule,
|
RouterTestingModule,
|
||||||
TranslateModule.forRoot(),
|
TranslateModule,
|
||||||
CoreModule.forRoot(),
|
CoreModule,
|
||||||
ContentModule.forRoot()
|
ContentModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
||||||
|
@ -24,6 +24,7 @@ import { of, throwError } from 'rxjs';
|
|||||||
import { TreeBaseNode } from '../models/tree-view.model';
|
import { TreeBaseNode } from '../models/tree-view.model';
|
||||||
import { NodeEntry } from '@alfresco/js-api';
|
import { NodeEntry } from '@alfresco/js-api';
|
||||||
import { SimpleChange } from '@angular/core';
|
import { SimpleChange } from '@angular/core';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('TreeViewComponent', () => {
|
describe('TreeViewComponent', () => {
|
||||||
|
|
||||||
@ -73,6 +74,7 @@ describe('TreeViewComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
declarations: []
|
declarations: []
|
||||||
|
@ -21,6 +21,7 @@ import { TestBed } from '@angular/core/testing';
|
|||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { TreeBaseNode } from '../models/tree-view.model';
|
import { TreeBaseNode } from '../models/tree-view.model';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('TreeViewService', () => {
|
describe('TreeViewService', () => {
|
||||||
|
|
||||||
@ -37,7 +38,10 @@ describe('TreeViewService', () => {
|
|||||||
] } };
|
] } };
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ContentTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -21,6 +21,7 @@ import { TranslationService, UploadService, setupTestBed, FileModel } from '@alf
|
|||||||
import { UploadBase } from './upload-base';
|
import { UploadBase } from './upload-base';
|
||||||
import { UploadFilesEvent } from '../upload-files.event';
|
import { UploadFilesEvent } from '../upload-files.event';
|
||||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-upload-button-test',
|
selector: 'adf-upload-button-test',
|
||||||
@ -43,6 +44,7 @@ describe('UploadBase', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -18,11 +18,12 @@
|
|||||||
import { EventEmitter } from '@angular/core';
|
import { EventEmitter } from '@angular/core';
|
||||||
import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing';
|
import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing';
|
||||||
import {
|
import {
|
||||||
FileModel, FileUploadCompleteEvent, FileUploadErrorEvent, UploadService, setupTestBed, AlfrescoApiService, AlfrescoApiServiceMock, UserPreferencesService
|
FileModel, FileUploadCompleteEvent, FileUploadErrorEvent, UploadService, setupTestBed, UserPreferencesService
|
||||||
} from '@alfresco/adf-core';
|
} from '@alfresco/adf-core';
|
||||||
import { UploadModule } from '../upload.module';
|
import { UploadModule } from '../upload.module';
|
||||||
import { FileUploadingDialogComponent } from './file-uploading-dialog.component';
|
import { FileUploadingDialogComponent } from './file-uploading-dialog.component';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('FileUploadingDialogComponent', () => {
|
describe('FileUploadingDialogComponent', () => {
|
||||||
let fixture: ComponentFixture<FileUploadingDialogComponent>;
|
let fixture: ComponentFixture<FileUploadingDialogComponent>;
|
||||||
@ -34,11 +35,9 @@ describe('FileUploadingDialogComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule,
|
ContentTestingModule,
|
||||||
UploadModule
|
UploadModule
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
|
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|||||||
import { FileModel, FileUploadOptions, FileUploadStatus, setupTestBed } from '@alfresco/adf-core';
|
import { FileModel, FileUploadOptions, FileUploadStatus, setupTestBed } from '@alfresco/adf-core';
|
||||||
import { FileUploadingListRowComponent } from './file-uploading-list-row.component';
|
import { FileUploadingListRowComponent } from './file-uploading-list-row.component';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('FileUploadingListRowComponent', () => {
|
describe('FileUploadingListRowComponent', () => {
|
||||||
let fixture: ComponentFixture<FileUploadingListRowComponent>;
|
let fixture: ComponentFixture<FileUploadingListRowComponent>;
|
||||||
@ -27,6 +28,7 @@ describe('FileUploadingListRowComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -20,6 +20,7 @@ import { TranslationService, FileUploadStatus, NodesApiService, UploadService, s
|
|||||||
import { of, throwError } from 'rxjs';
|
import { of, throwError } from 'rxjs';
|
||||||
import { FileUploadingListComponent } from './file-uploading-list.component';
|
import { FileUploadingListComponent } from './file-uploading-list.component';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('FileUploadingListComponent', () => {
|
describe('FileUploadingListComponent', () => {
|
||||||
let fixture: ComponentFixture<FileUploadingListComponent>;
|
let fixture: ComponentFixture<FileUploadingListComponent>;
|
||||||
@ -35,6 +36,7 @@ describe('FileUploadingListComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -22,6 +22,7 @@ import { of, throwError } from 'rxjs';
|
|||||||
import { UploadButtonComponent } from './upload-button.component';
|
import { UploadButtonComponent } from './upload-button.component';
|
||||||
import { NodeEntry } from '@alfresco/js-api';
|
import { NodeEntry } from '@alfresco/js-api';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('UploadButtonComponent', () => {
|
describe('UploadButtonComponent', () => {
|
||||||
|
|
||||||
@ -52,6 +53,7 @@ describe('UploadButtonComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -19,6 +19,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|||||||
import { FileModel, UploadService, setupTestBed } from '@alfresco/adf-core';
|
import { FileModel, UploadService, setupTestBed } from '@alfresco/adf-core';
|
||||||
import { UploadDragAreaComponent } from './upload-drag-area.component';
|
import { UploadDragAreaComponent } from './upload-drag-area.component';
|
||||||
import { ContentTestingModule } from '../../testing/content.testing.module';
|
import { ContentTestingModule } from '../../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
function getFakeShareDataRow(allowableOperations = ['delete', 'update', 'create']) {
|
function getFakeShareDataRow(allowableOperations = ['delete', 'update', 'create']) {
|
||||||
return {
|
return {
|
||||||
@ -95,6 +96,7 @@ describe('UploadDragAreaComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -19,11 +19,12 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|||||||
import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing';
|
import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { VersionListComponent } from './version-list.component';
|
import { VersionListComponent } from './version-list.component';
|
||||||
import { AlfrescoApiService, setupTestBed, AlfrescoApiServiceMock } from '@alfresco/adf-core';
|
import { AlfrescoApiService, setupTestBed } from '@alfresco/adf-core';
|
||||||
import { MatDialog } from '@angular/material';
|
import { MatDialog } from '@angular/material';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { Node, VersionPaging, VersionEntry } from '@alfresco/js-api';
|
import { Node, VersionPaging, VersionEntry } from '@alfresco/js-api';
|
||||||
import { CoreTestingModule } from '../../../../core/testing/core.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('VersionListComponent', () => {
|
describe('VersionListComponent', () => {
|
||||||
let component: VersionListComponent;
|
let component: VersionListComponent;
|
||||||
@ -45,13 +46,8 @@ describe('VersionListComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
CoreTestingModule
|
TranslateModule.forRoot(),
|
||||||
],
|
ContentTestingModule
|
||||||
declarations: [
|
|
||||||
VersionListComponent
|
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
|
|
||||||
],
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
});
|
});
|
||||||
|
@ -22,6 +22,7 @@ import { AlfrescoApiService, setupTestBed } from '@alfresco/adf-core';
|
|||||||
import { Node } from '@alfresco/js-api';
|
import { Node } from '@alfresco/js-api';
|
||||||
import { VersionManagerComponent } from './version-manager.component';
|
import { VersionManagerComponent } from './version-manager.component';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('VersionManagerComponent', () => {
|
describe('VersionManagerComponent', () => {
|
||||||
let component: VersionManagerComponent;
|
let component: VersionManagerComponent;
|
||||||
@ -45,6 +46,7 @@ describe('VersionManagerComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
],
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
|
@ -19,6 +19,7 @@ import { ComponentFixture, TestBed, async } from '@angular/core/testing';
|
|||||||
import { AppConfigService, setupTestBed } from '@alfresco/adf-core';
|
import { AppConfigService, setupTestBed } from '@alfresco/adf-core';
|
||||||
import { WebscriptComponent } from './webscript.component';
|
import { WebscriptComponent } from './webscript.component';
|
||||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
declare let jasmine: any;
|
declare let jasmine: any;
|
||||||
|
|
||||||
@ -30,6 +31,7 @@ describe('WebscriptComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
ContentTestingModule
|
ContentTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -19,16 +19,18 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|||||||
import { CoreTestingModule } from '../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../testing/core.testing.module';
|
||||||
import { setupTestBed } from '../../testing/setup-test-bed';
|
import { setupTestBed } from '../../testing/setup-test-bed';
|
||||||
import { AboutApplicationModulesComponent } from './about-application-modules.component';
|
import { AboutApplicationModulesComponent } from './about-application-modules.component';
|
||||||
import { MatTableModule } from '@angular/material/table';
|
|
||||||
import { DataTableModule } from '../../datatable/datatable.module';
|
|
||||||
import { mockDependencies, mockPlugins } from '../about.mock';
|
import { mockDependencies, mockPlugins } from '../about.mock';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('AboutApplicationModulesComponent', () => {
|
describe('AboutApplicationModulesComponent', () => {
|
||||||
let fixture: ComponentFixture<AboutApplicationModulesComponent>;
|
let fixture: ComponentFixture<AboutApplicationModulesComponent>;
|
||||||
let component: AboutApplicationModulesComponent;
|
let component: AboutApplicationModulesComponent;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule, MatTableModule, DataTableModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -20,13 +20,17 @@ import { CoreTestingModule } from '../../testing/core.testing.module';
|
|||||||
import { setupTestBed } from '../../testing/setup-test-bed';
|
import { setupTestBed } from '../../testing/setup-test-bed';
|
||||||
import { AboutGithubLinkComponent } from './about-github-link.component';
|
import { AboutGithubLinkComponent } from './about-github-link.component';
|
||||||
import { aboutGithubDetails } from '../about.mock';
|
import { aboutGithubDetails } from '../about.mock';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('AboutGithubLinkComponent', () => {
|
describe('AboutGithubLinkComponent', () => {
|
||||||
let fixture: ComponentFixture<AboutGithubLinkComponent>;
|
let fixture: ComponentFixture<AboutGithubLinkComponent>;
|
||||||
let component: AboutGithubLinkComponent;
|
let component: AboutGithubLinkComponent;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -22,9 +22,8 @@ import { AboutProductVersionComponent } from './about-product-version.component'
|
|||||||
import { DiscoveryApiService } from '../../services/discovery-api.service';
|
import { DiscoveryApiService } from '../../services/discovery-api.service';
|
||||||
import { AuthenticationService } from '../../services/authentication.service';
|
import { AuthenticationService } from '../../services/authentication.service';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { DataTableModule } from '../../datatable/datatable.module';
|
|
||||||
import { MatCardModule } from '@angular/material';
|
|
||||||
import { aboutAPSMockDetails, mockModules } from '../about.mock';
|
import { aboutAPSMockDetails, mockModules } from '../about.mock';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('AboutProductVersionComponent', () => {
|
describe('AboutProductVersionComponent', () => {
|
||||||
let fixture: ComponentFixture<AboutProductVersionComponent>;
|
let fixture: ComponentFixture<AboutProductVersionComponent>;
|
||||||
@ -32,7 +31,10 @@ describe('AboutProductVersionComponent', () => {
|
|||||||
let discoveryApiService: DiscoveryApiService;
|
let discoveryApiService: DiscoveryApiService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule, DataTableModule, MatCardModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -21,6 +21,7 @@ import { setupTestBed } from '../../testing/setup-test-bed';
|
|||||||
import { AboutServerSettingsComponent } from './about-server-settings.component';
|
import { AboutServerSettingsComponent } from './about-server-settings.component';
|
||||||
import { AppConfigService } from '../../app-config/app-config.service';
|
import { AppConfigService } from '../../app-config/app-config.service';
|
||||||
import { aboutGithubDetails } from '../about.mock';
|
import { aboutGithubDetails } from '../about.mock';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('AboutServerSettingsComponent', () => {
|
describe('AboutServerSettingsComponent', () => {
|
||||||
let fixture: ComponentFixture<AboutServerSettingsComponent>;
|
let fixture: ComponentFixture<AboutServerSettingsComponent>;
|
||||||
@ -28,7 +29,10 @@ describe('AboutServerSettingsComponent', () => {
|
|||||||
let appConfigService: AppConfigService;
|
let appConfigService: AppConfigService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -20,6 +20,7 @@ import { MaterialModule } from '../material.module';
|
|||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
import { CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-custom-container',
|
selector: 'adf-custom-container',
|
||||||
@ -60,6 +61,7 @@ describe('ButtonsMenuComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule,
|
CoreTestingModule,
|
||||||
MaterialModule
|
MaterialModule
|
||||||
],
|
],
|
||||||
@ -108,6 +110,7 @@ describe('ButtonsMenuComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule,
|
CoreTestingModule,
|
||||||
MaterialModule
|
MaterialModule
|
||||||
],
|
],
|
||||||
|
@ -22,6 +22,7 @@ import { CoreTestingModule } from '../../../testing/core.testing.module';
|
|||||||
import { CardViewArrayItemComponent } from './card-view-arrayitem.component';
|
import { CardViewArrayItemComponent } from './card-view-arrayitem.component';
|
||||||
import { CardViewArrayItemModel, CardViewArrayItem } from '../../models/card-view-arrayitem.model';
|
import { CardViewArrayItemModel, CardViewArrayItem } from '../../models/card-view-arrayitem.model';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('CardViewArrayItemComponent', () => {
|
describe('CardViewArrayItemComponent', () => {
|
||||||
let component: CardViewArrayItemComponent;
|
let component: CardViewArrayItemComponent;
|
||||||
@ -41,7 +42,10 @@ describe('CardViewArrayItemComponent', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
@ -23,6 +23,7 @@ import { CardViewUpdateService } from '../../services/card-view-update.service';
|
|||||||
import { CardViewBoolItemComponent } from './card-view-boolitem.component';
|
import { CardViewBoolItemComponent } from './card-view-boolitem.component';
|
||||||
import { CardViewBoolItemModel } from '../../models/card-view-boolitem.model';
|
import { CardViewBoolItemModel } from '../../models/card-view-boolitem.model';
|
||||||
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('CardViewBoolItemComponent', () => {
|
describe('CardViewBoolItemComponent', () => {
|
||||||
|
|
||||||
@ -30,7 +31,10 @@ describe('CardViewBoolItemComponent', () => {
|
|||||||
let component: CardViewBoolItemComponent;
|
let component: CardViewBoolItemComponent;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -25,6 +25,7 @@ import { CardViewDateItemComponent } from './card-view-dateitem.component';
|
|||||||
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
||||||
import { ClipboardService } from '../../../clipboard/clipboard.service';
|
import { ClipboardService } from '../../../clipboard/clipboard.service';
|
||||||
import { AppConfigService } from '@alfresco/adf-core';
|
import { AppConfigService } from '@alfresco/adf-core';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('CardViewDateItemComponent', () => {
|
describe('CardViewDateItemComponent', () => {
|
||||||
|
|
||||||
@ -33,7 +34,10 @@ describe('CardViewDateItemComponent', () => {
|
|||||||
let appConfigService: AppConfigService;
|
let appConfigService: AppConfigService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -22,6 +22,7 @@ import { CardViewKeyValuePairsItemComponent } from './card-view-keyvaluepairsite
|
|||||||
import { setupTestBed } from '../../../testing/setup-test-bed';
|
import { setupTestBed } from '../../../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
||||||
import { CardViewUpdateService } from '../../services/card-view-update.service';
|
import { CardViewUpdateService } from '../../services/card-view-update.service';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('CardViewKeyValuePairsItemComponent', () => {
|
describe('CardViewKeyValuePairsItemComponent', () => {
|
||||||
|
|
||||||
@ -32,7 +33,10 @@ describe('CardViewKeyValuePairsItemComponent', () => {
|
|||||||
const mockData = [{ name: 'test-name', value: 'test-value' }];
|
const mockData = [{ name: 'test-name', value: 'test-value' }];
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -23,6 +23,7 @@ import { CardViewUpdateService } from '../../services/card-view-update.service';
|
|||||||
import { CardViewMapItemComponent } from './card-view-mapitem.component';
|
import { CardViewMapItemComponent } from './card-view-mapitem.component';
|
||||||
import { setupTestBed } from '../../../testing/setup-test-bed';
|
import { setupTestBed } from '../../../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('CardViewMapItemComponent', () => {
|
describe('CardViewMapItemComponent', () => {
|
||||||
let service: CardViewUpdateService;
|
let service: CardViewUpdateService;
|
||||||
@ -33,7 +34,10 @@ describe('CardViewMapItemComponent', () => {
|
|||||||
let element: HTMLElement;
|
let element: HTMLElement;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -23,6 +23,7 @@ import { CardViewSelectItemComponent } from './card-view-selectitem.component';
|
|||||||
import { setupTestBed } from '../../../testing/setup-test-bed';
|
import { setupTestBed } from '../../../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('CardViewSelectItemComponent', () => {
|
describe('CardViewSelectItemComponent', () => {
|
||||||
|
|
||||||
@ -39,7 +40,10 @@ describe('CardViewSelectItemComponent', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -26,6 +26,7 @@ import { CardViewItemFloatValidator, CardViewItemIntValidator, CardViewIntItemMo
|
|||||||
import { MatChipsModule } from '@angular/material';
|
import { MatChipsModule } from '@angular/material';
|
||||||
import { ClipboardService } from '../../../clipboard/clipboard.service';
|
import { ClipboardService } from '../../../clipboard/clipboard.service';
|
||||||
import { DebugElement } from '@angular/core';
|
import { DebugElement } from '@angular/core';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('CardViewTextItemComponent', () => {
|
describe('CardViewTextItemComponent', () => {
|
||||||
|
|
||||||
@ -34,6 +35,7 @@ describe('CardViewTextItemComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule,
|
CoreTestingModule,
|
||||||
MatChipsModule
|
MatChipsModule
|
||||||
]
|
]
|
||||||
|
@ -22,6 +22,7 @@ import { CardViewDateItemModel } from '../../models/card-view-dateitem.model';
|
|||||||
import { CardViewTextItemModel } from '../../models/card-view-textitem.model';
|
import { CardViewTextItemModel } from '../../models/card-view-textitem.model';
|
||||||
import { CardViewComponent } from './card-view.component';
|
import { CardViewComponent } from './card-view.component';
|
||||||
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('CardViewComponent', () => {
|
describe('CardViewComponent', () => {
|
||||||
|
|
||||||
@ -29,7 +30,10 @@ describe('CardViewComponent', () => {
|
|||||||
let component: CardViewComponent;
|
let component: CardViewComponent;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -21,6 +21,7 @@ import { setupTestBed } from '../testing/setup-test-bed';
|
|||||||
import { ClipboardService } from './clipboard.service';
|
import { ClipboardService } from './clipboard.service';
|
||||||
import { ClipboardDirective } from './clipboard.directive';
|
import { ClipboardDirective } from './clipboard.directive';
|
||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-test-component',
|
selector: 'adf-test-component',
|
||||||
@ -42,6 +43,7 @@ describe('ClipboardDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule
|
CoreTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -84,6 +86,7 @@ describe('CopyClipboardDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule
|
CoreTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -21,6 +21,7 @@ import { ClipboardService } from './clipboard.service';
|
|||||||
import { MatSnackBarModule } from '@angular/material';
|
import { MatSnackBarModule } from '@angular/material';
|
||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../testing';
|
import { CoreTestingModule } from '../testing';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ClipboardService', () => {
|
describe('ClipboardService', () => {
|
||||||
let clipboardService: ClipboardService;
|
let clipboardService: ClipboardService;
|
||||||
@ -29,6 +30,7 @@ describe('ClipboardService', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule,
|
CoreTestingModule,
|
||||||
MatSnackBarModule
|
MatSnackBarModule
|
||||||
]
|
]
|
||||||
|
@ -24,6 +24,7 @@ import { EcmUserService } from '../services/ecm-user.service';
|
|||||||
import { PeopleProcessService } from '../services/people-process.service';
|
import { PeopleProcessService } from '../services/people-process.service';
|
||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
const testUser: UserProcessModel = new UserProcessModel({
|
const testUser: UserProcessModel = new UserProcessModel({
|
||||||
id: '1',
|
id: '1',
|
||||||
@ -111,7 +112,10 @@ describe('CommentListComponent', () => {
|
|||||||
let peopleProcessService: PeopleProcessService;
|
let peopleProcessService: PeopleProcessService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ import { CommentsComponent } from './comments.component';
|
|||||||
import { CommentContentService } from '../services/comment-content.service';
|
import { CommentContentService } from '../services/comment-content.service';
|
||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('CommentsComponent', () => {
|
describe('CommentsComponent', () => {
|
||||||
|
|
||||||
@ -36,7 +37,10 @@ describe('CommentsComponent', () => {
|
|||||||
let commentContentService: CommentContentService;
|
let commentContentService: CommentContentService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ import { ContextMenuModule } from './context-menu.module';
|
|||||||
import { ContextMenuService } from './context-menu.service';
|
import { ContextMenuService } from './context-menu.service';
|
||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../testing';
|
import { CoreTestingModule } from '../testing';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ContextMenuHolderComponent', () => {
|
describe('ContextMenuHolderComponent', () => {
|
||||||
let fixture: ComponentFixture<ContextMenuHolderComponent>;
|
let fixture: ComponentFixture<ContextMenuHolderComponent>;
|
||||||
@ -54,6 +55,7 @@ describe('ContextMenuHolderComponent', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule,
|
CoreTestingModule,
|
||||||
ContextMenuModule
|
ContextMenuModule
|
||||||
],
|
],
|
||||||
|
@ -16,12 +16,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Overlay } from '@angular/cdk/overlay';
|
import { Overlay } from '@angular/cdk/overlay';
|
||||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
import { ContextMenuOverlayService } from './context-menu-overlay.service';
|
import { ContextMenuOverlayService } from './context-menu-overlay.service';
|
||||||
import { Injector } from '@angular/core';
|
import { Injector } from '@angular/core';
|
||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ContextMenuService', () => {
|
describe('ContextMenuService', () => {
|
||||||
let contextMenuOverlayService: ContextMenuOverlayService;
|
let contextMenuOverlayService: ContextMenuOverlayService;
|
||||||
@ -36,7 +36,10 @@ describe('ContextMenuService', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [NoopAnimationsModule, CoreTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
],
|
||||||
providers: [ Overlay ]
|
providers: [ Overlay ]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ import { TestBed, ComponentFixture } from '@angular/core/testing';
|
|||||||
import { ContextMenuModule } from './context-menu.module';
|
import { ContextMenuModule } from './context-menu.module';
|
||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-test-component',
|
selector: 'adf-test-component',
|
||||||
@ -80,6 +81,7 @@ describe('ContextMenuDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule,
|
CoreTestingModule,
|
||||||
ContextMenuModule
|
ContextMenuModule
|
||||||
],
|
],
|
||||||
|
@ -18,11 +18,15 @@
|
|||||||
import { DataColumnComponent } from './data-column.component';
|
import { DataColumnComponent } from './data-column.component';
|
||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('DataColumnListComponent', () => {
|
describe('DataColumnListComponent', () => {
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should setup screen reader title for thumbnails', () => {
|
it('should setup screen reader title for thumbnails', () => {
|
||||||
|
@ -28,6 +28,7 @@ import { setupTestBed } from '../../../testing/setup-test-bed';
|
|||||||
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
||||||
import { DataColumnListComponent } from '../../../data-column/data-column-list.component';
|
import { DataColumnListComponent } from '../../../data-column/data-column-list.component';
|
||||||
import { DataColumnComponent } from '../../../data-column/data-column.component';
|
import { DataColumnComponent } from '../../../data-column/data-column.component';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({selector: 'adf-custom-column-template-component', template: `
|
@Component({selector: 'adf-custom-column-template-component', template: `
|
||||||
<ng-template #tmplRef></ng-template>
|
<ng-template #tmplRef></ng-template>
|
||||||
@ -69,6 +70,7 @@ describe('DataTable', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule
|
CoreTestingModule
|
||||||
],
|
],
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
@ -1237,6 +1239,7 @@ describe('Accesibility', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule
|
CoreTestingModule
|
||||||
],
|
],
|
||||||
declarations: [CustomColumnTemplateComponent],
|
declarations: [CustomColumnTemplateComponent],
|
||||||
|
@ -19,13 +19,17 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|||||||
import { EmptyListComponent } from './empty-list.component';
|
import { EmptyListComponent } from './empty-list.component';
|
||||||
import { setupTestBed } from '../../../testing/setup-test-bed';
|
import { setupTestBed } from '../../../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('EmptyListComponentComponent', () => {
|
describe('EmptyListComponentComponent', () => {
|
||||||
let component: EmptyListComponent;
|
let component: EmptyListComponent;
|
||||||
let fixture: ComponentFixture<EmptyListComponent>;
|
let fixture: ComponentFixture<EmptyListComponent>;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -22,6 +22,7 @@ import { ObjectDataColumn } from './../../data/object-datacolumn.model';
|
|||||||
import { setupTestBed } from '../../../testing/setup-test-bed';
|
import { setupTestBed } from '../../../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
||||||
import { JsonCellComponent } from './json-cell.component';
|
import { JsonCellComponent } from './json-cell.component';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('JsonCellComponent', () => {
|
describe('JsonCellComponent', () => {
|
||||||
let component: JsonCellComponent;
|
let component: JsonCellComponent;
|
||||||
@ -31,7 +32,10 @@ describe('JsonCellComponent', () => {
|
|||||||
let columnData;
|
let columnData;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
|
@ -22,6 +22,7 @@ import { ObjectDataColumn } from './../../data/object-datacolumn.model';
|
|||||||
import { LocationCellComponent } from './location-cell.component';
|
import { LocationCellComponent } from './location-cell.component';
|
||||||
import { setupTestBed } from '../../../testing/setup-test-bed';
|
import { setupTestBed } from '../../../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('LocationCellComponent', () => {
|
describe('LocationCellComponent', () => {
|
||||||
let component: LocationCellComponent;
|
let component: LocationCellComponent;
|
||||||
@ -31,7 +32,10 @@ describe('LocationCellComponent', () => {
|
|||||||
let columnData;
|
let columnData;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
|
@ -20,6 +20,7 @@ import { DataTableComponent } from '../components/datatable/datatable.component'
|
|||||||
import { LoadingContentTemplateDirective } from './loading-template.directive';
|
import { LoadingContentTemplateDirective } from './loading-template.directive';
|
||||||
import { setupTestBed } from '../../testing/setup-test-bed';
|
import { setupTestBed } from '../../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('LoadingContentTemplateDirective', () => {
|
describe('LoadingContentTemplateDirective', () => {
|
||||||
|
|
||||||
@ -28,7 +29,10 @@ describe('LoadingContentTemplateDirective', () => {
|
|||||||
let directive: LoadingContentTemplateDirective;
|
let directive: LoadingContentTemplateDirective;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -20,6 +20,7 @@ import { DataTableComponent } from '../components/datatable/datatable.component'
|
|||||||
import { NoContentTemplateDirective } from './no-content-template.directive';
|
import { NoContentTemplateDirective } from './no-content-template.directive';
|
||||||
import { setupTestBed } from '../../testing/setup-test-bed';
|
import { setupTestBed } from '../../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('NoContentTemplateDirective', () => {
|
describe('NoContentTemplateDirective', () => {
|
||||||
|
|
||||||
@ -28,7 +29,10 @@ describe('NoContentTemplateDirective', () => {
|
|||||||
let directive: NoContentTemplateDirective;
|
let directive: NoContentTemplateDirective;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -20,6 +20,7 @@ import { DataTableComponent } from '../components/datatable/datatable.component'
|
|||||||
import { NoPermissionTemplateDirective } from './no-permission-template.directive';
|
import { NoPermissionTemplateDirective } from './no-permission-template.directive';
|
||||||
import { setupTestBed } from '../../testing/setup-test-bed';
|
import { setupTestBed } from '../../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('NoPermissionTemplateDirective', () => {
|
describe('NoPermissionTemplateDirective', () => {
|
||||||
|
|
||||||
@ -28,7 +29,10 @@ describe('NoPermissionTemplateDirective', () => {
|
|||||||
let directive: NoPermissionTemplateDirective;
|
let directive: NoPermissionTemplateDirective;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule]
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -22,6 +22,7 @@ import { setupTestBed } from '../../testing/setup-test-bed';
|
|||||||
import { CoreTestingModule } from '../../testing/core.testing.module';
|
import { CoreTestingModule } from '../../testing/core.testing.module';
|
||||||
import { DownloadZipService } from '../../services/download-zip.service';
|
import { DownloadZipService } from '../../services/download-zip.service';
|
||||||
import { Observable } from 'rxjs/index';
|
import { Observable } from 'rxjs/index';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('DownloadZipDialogComponent', () => {
|
describe('DownloadZipDialogComponent', () => {
|
||||||
|
|
||||||
@ -40,7 +41,10 @@ describe('DownloadZipDialogComponent', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [CoreTestingModule],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
CoreTestingModule
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: MatDialogRef, useValue: dialogRef },
|
{ provide: MatDialogRef, useValue: dialogRef },
|
||||||
{ provide: MAT_DIALOG_DATA, useValue: dataMock }
|
{ provide: MAT_DIALOG_DATA, useValue: dataMock }
|
||||||
|
@ -21,6 +21,7 @@ import { CheckAllowableOperationDirective, NodeAllowableOperationSubject } from
|
|||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-text-subject',
|
selector: 'adf-text-subject',
|
||||||
@ -36,6 +37,7 @@ describe('CheckAllowableOperationDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule
|
CoreTestingModule
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -22,6 +22,7 @@ import { HighlightTransformService } from '../services/highlight-transform.servi
|
|||||||
import { HighlightDirective } from './highlight.directive';
|
import { HighlightDirective } from './highlight.directive';
|
||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
/* spellchecker: disable */
|
/* spellchecker: disable */
|
||||||
const template: string = `
|
const template: string = `
|
||||||
@ -47,6 +48,7 @@ describe('HighlightDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule
|
CoreTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -23,6 +23,7 @@ import { AuthenticationService } from '../services';
|
|||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { LogoutDirective } from './logout.directive';
|
import { LogoutDirective } from './logout.directive';
|
||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('LogoutDirective', () => {
|
describe('LogoutDirective', () => {
|
||||||
|
|
||||||
@ -43,6 +44,7 @@ describe('LogoutDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule
|
CoreTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -97,6 +99,7 @@ describe('LogoutDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule
|
CoreTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -140,6 +143,7 @@ describe('LogoutDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule
|
CoreTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -22,6 +22,7 @@ import { AlfrescoApiService } from '../services/alfresco-api.service';
|
|||||||
import { NodeDeleteDirective } from './node-delete.directive';
|
import { NodeDeleteDirective } from './node-delete.directive';
|
||||||
import { setupTestBed } from '../testing/setup-test-bed';
|
import { setupTestBed } from '../testing/setup-test-bed';
|
||||||
import { CoreTestingModule } from '../testing/core.testing.module';
|
import { CoreTestingModule } from '../testing/core.testing.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: `
|
template: `
|
||||||
@ -91,6 +92,7 @@ describe('NodeDeleteDirective', () => {
|
|||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
CoreTestingModule
|
CoreTestingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user