mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
ACS-10908 Cleanup unit test configuration for Content (#11470)
This commit is contained in:
@@ -17,8 +17,6 @@
|
||||
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { VersionComparisonComponent } from './version-comparison.component';
|
||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { Node } from '@alfresco/js-api';
|
||||
|
||||
describe('VersionComparisonComponent', () => {
|
||||
@@ -51,8 +49,7 @@ describe('VersionComparisonComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
imports: [VersionComparisonComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(VersionComparisonComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
||||
@@ -15,17 +15,17 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { VersionListComponent, VersionListDataSource } from './version-list.component';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { of } from 'rxjs';
|
||||
import { Node, NodeEntry, VersionEntry, Version } from '@alfresco/js-api';
|
||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||
import { ContentVersionService } from './content-version.service';
|
||||
import { take } from 'rxjs/operators';
|
||||
import { CdkFixedSizeVirtualScroll } from '@angular/cdk/scrolling';
|
||||
import { NoopAuthModule } from '@alfresco/adf-core';
|
||||
import { provideApiTesting } from '../testing/providers';
|
||||
|
||||
describe('VersionListComponent', () => {
|
||||
let component: VersionListComponent;
|
||||
@@ -48,8 +48,8 @@ describe('VersionListComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
imports: [NoopAuthModule, VersionListComponent],
|
||||
providers: [provideApiTesting()]
|
||||
});
|
||||
fixture = TestBed.createComponent(VersionListComponent);
|
||||
dialog = TestBed.inject(MatDialog);
|
||||
|
||||
@@ -15,13 +15,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { Node, Version, VersionEntry, VersionPaging } from '@alfresco/js-api';
|
||||
import { VersionManagerComponent } from './version-manager.component';
|
||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||
import { NodesApiService } from '../common/services/nodes-api.service';
|
||||
import { NoopAuthModule } from '@alfresco/adf-core';
|
||||
|
||||
describe('VersionManagerComponent', () => {
|
||||
let component: VersionManagerComponent;
|
||||
@@ -39,8 +38,7 @@ describe('VersionManagerComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
imports: [NoopAuthModule, VersionManagerComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(VersionManagerComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
||||
@@ -15,16 +15,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { VersionUploadComponent } from './version-upload.component';
|
||||
import { ContentTestingModule } from '../testing/content.testing.module';
|
||||
import { Node } from '@alfresco/js-api';
|
||||
import { UploadService } from '../common/services/upload.service';
|
||||
import { ContentService } from '../common/services/content.service';
|
||||
import { Subject } from 'rxjs';
|
||||
import { FileUploadErrorEvent, FileUploadEvent, UploadVersionButtonComponent } from '@alfresco/adf-content-services';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { UploadVersionButtonComponent } from '../upload';
|
||||
import { FileUploadErrorEvent, FileUploadEvent } from '../common';
|
||||
import { NoopAuthModule } from '@alfresco/adf-core';
|
||||
|
||||
describe('VersionUploadComponent', () => {
|
||||
let component: VersionUploadComponent;
|
||||
@@ -51,9 +51,7 @@ describe('VersionUploadComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
providers: [UploadService],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
imports: [NoopAuthModule, VersionUploadComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(VersionUploadComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
||||
Reference in New Issue
Block a user