mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4364] Fix Back button action on Viewer Component (#4613)
* [ADF-3364] Fix Back button action on Viewer Component * [ADF-4364] Fix Module providers * [ADF-4364] Add unit tests * [ADF-4364] Fix unit tests * [ADF-4364] Fix lazy loading module of Viewer component
This commit is contained in:
committed by
Eugenio Romano
parent
8395b0baa5
commit
181cee72d6
@@ -23,6 +23,7 @@ import { ViewerComponent } from '../components/viewer.component';
|
||||
import { ViewerExtensionDirective } from './viewer-extension.directive';
|
||||
import { setupTestBed } from '../../testing/setupTestBed';
|
||||
import { CoreModule } from '../../core.module';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
|
||||
describe('ExtensionViewerDirective', () => {
|
||||
let extensionViewerDirective: ViewerExtensionDirective;
|
||||
@@ -35,7 +36,8 @@ describe('ExtensionViewerDirective', () => {
|
||||
|
||||
setupTestBed({
|
||||
imports: [
|
||||
CoreModule.forRoot()
|
||||
CoreModule.forRoot(),
|
||||
RouterTestingModule
|
||||
],
|
||||
providers: [
|
||||
{ provide: Location, useClass: SpyLocation },
|
||||
|
Reference in New Issue
Block a user