Skip to content

Commit

Permalink
Fixed broken unit test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed May 31, 2024
1 parent c8bbf6a commit 7a845c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { HarnessLoader } from '@angular/cdk/testing';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { Component, CUSTOM_ELEMENTS_SCHEMA, QueryList, SimpleChange, SimpleChanges, ViewChild } from '@angular/core';
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { MatDialog } from '@angular/material/dialog';
import { MatProgressSpinnerHarness } from '@angular/material/progress-spinner/testing';
import { By } from '@angular/platform-browser';
import { of, Subject, throwError } from 'rxjs';
Expand Down Expand Up @@ -60,14 +59,10 @@ import { ShareDataTableAdapter } from '../data/share-datatable-adapter';
import { DocumentListModule } from '../document-list.module';
import { ContentActionModel } from '../models/content-action.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 { FileAutoDownloadComponent } from './file-auto-download/file-auto-download.component';
import { ShareDataTableAdapter } from '../data/share-datatable-adapter';
import { HarnessLoader } from '@angular/cdk/testing';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { MatProgressSpinnerHarness } from '@angular/material/progress-spinner/testing';
import { DocumentListComponent } from './document-list.component';
import { CustomResourcesService, DocumentListService } from '../public-api';

const mockDialog = {
open: jasmine.createSpy('open')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
TranslationService,
ViewUtilService,
ViewerComponent,
ViewerModule,
ViewerSidebarComponent
} from '@alfresco/adf-core';
import { NodesApiService } from '../../common/services/nodes-api.service';
Expand Down Expand Up @@ -157,15 +158,15 @@ describe('AlfrescoViewerComponent', () => {
MatButtonModule,
MatIconModule,
MatDialogModule,
HttpClientTestingModule
HttpClientTestingModule,
ViewerModule
],
declarations: [
ViewerWithCustomToolbarComponent,
ViewerWithCustomSidebarComponent,
ViewerWithCustomOpenWithComponent,
ViewerWithCustomMoreActionsComponent,
ViewerWithCustomToolbarActionsComponent,
ViewerSidebarComponent
ViewerWithCustomToolbarActionsComponent
],
providers: [
ContentService,
Expand All @@ -179,7 +180,8 @@ describe('AlfrescoViewerComponent', () => {
}
},
{ provide: Location, useClass: SpyLocation },
MatDialog
MatDialog,
ViewerSidebarComponent
],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
});
Expand Down

0 comments on commit 7a845c8

Please sign in to comment.