mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixed broken unit test after rebase
This commit is contained in:
@@ -32,7 +32,6 @@ import { HarnessLoader } from '@angular/cdk/testing';
|
|||||||
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
|
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
|
||||||
import { Component, CUSTOM_ELEMENTS_SCHEMA, QueryList, SimpleChange, SimpleChanges, ViewChild } from '@angular/core';
|
import { Component, CUSTOM_ELEMENTS_SCHEMA, QueryList, SimpleChange, SimpleChanges, ViewChild } from '@angular/core';
|
||||||
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
|
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
|
||||||
import { MatProgressSpinnerHarness } from '@angular/material/progress-spinner/testing';
|
import { MatProgressSpinnerHarness } from '@angular/material/progress-spinner/testing';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { of, Subject, throwError } from 'rxjs';
|
import { of, Subject, throwError } from 'rxjs';
|
||||||
@@ -60,14 +59,10 @@ import { ShareDataTableAdapter } from '../data/share-datatable-adapter';
|
|||||||
import { DocumentListModule } from '../document-list.module';
|
import { DocumentListModule } from '../document-list.module';
|
||||||
import { ContentActionModel } from '../models/content-action.model';
|
import { ContentActionModel } from '../models/content-action.model';
|
||||||
import { DocumentLoaderNode } from '../models/document-folder.model';
|
import { DocumentLoaderNode } from '../models/document-folder.model';
|
||||||
import { matIconRegistryMock } from '../../testing/mat-icon-registry-mock';
|
|
||||||
import { domSanitizerMock } from '../../testing/dom-sanitizer-mock';
|
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { FileAutoDownloadComponent } from './file-auto-download/file-auto-download.component';
|
import { FileAutoDownloadComponent } from './file-auto-download/file-auto-download.component';
|
||||||
import { ShareDataTableAdapter } from '../data/share-datatable-adapter';
|
import { DocumentListComponent } from './document-list.component';
|
||||||
import { HarnessLoader } from '@angular/cdk/testing';
|
import { CustomResourcesService, DocumentListService } from '../public-api';
|
||||||
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
|
|
||||||
import { MatProgressSpinnerHarness } from '@angular/material/progress-spinner/testing';
|
|
||||||
|
|
||||||
const mockDialog = {
|
const mockDialog = {
|
||||||
open: jasmine.createSpy('open')
|
open: jasmine.createSpy('open')
|
||||||
|
@@ -34,6 +34,7 @@ import {
|
|||||||
TranslationService,
|
TranslationService,
|
||||||
ViewUtilService,
|
ViewUtilService,
|
||||||
ViewerComponent,
|
ViewerComponent,
|
||||||
|
ViewerModule,
|
||||||
ViewerSidebarComponent
|
ViewerSidebarComponent
|
||||||
} from '@alfresco/adf-core';
|
} from '@alfresco/adf-core';
|
||||||
import { NodesApiService } from '../../common/services/nodes-api.service';
|
import { NodesApiService } from '../../common/services/nodes-api.service';
|
||||||
@@ -157,15 +158,15 @@ describe('AlfrescoViewerComponent', () => {
|
|||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatDialogModule,
|
MatDialogModule,
|
||||||
HttpClientTestingModule
|
HttpClientTestingModule,
|
||||||
|
ViewerModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
ViewerWithCustomToolbarComponent,
|
ViewerWithCustomToolbarComponent,
|
||||||
ViewerWithCustomSidebarComponent,
|
ViewerWithCustomSidebarComponent,
|
||||||
ViewerWithCustomOpenWithComponent,
|
ViewerWithCustomOpenWithComponent,
|
||||||
ViewerWithCustomMoreActionsComponent,
|
ViewerWithCustomMoreActionsComponent,
|
||||||
ViewerWithCustomToolbarActionsComponent,
|
ViewerWithCustomToolbarActionsComponent
|
||||||
ViewerSidebarComponent
|
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
ContentService,
|
ContentService,
|
||||||
@@ -179,7 +180,8 @@ describe('AlfrescoViewerComponent', () => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ provide: Location, useClass: SpyLocation },
|
{ provide: Location, useClass: SpyLocation },
|
||||||
MatDialog
|
MatDialog,
|
||||||
|
ViewerSidebarComponent
|
||||||
],
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user