mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-10 14:11:17 +00:00
[ACS-5627] migrate to standalone components (#3339)
* standalone preview component * remove deprecated routes * remove preview routes * standalone viewer * toggle favorite * edit offline * fix tests * toggle info drawer * toggle join library * toggle favorite library * view node * convert app toolbar module to standalone directives * convert sidenav module to standalone * convert search module to standalone * shared link view * shared files * reduce module files * files component * files component cleanup * cleanup directives module * favorite libraries * favorites component * recent files component * libraries component * cleanup * remove material module barrel * open in app component * cleanup modules * migrate toolbar module to standalone * split page layout module * remove incorrect import * remove incorrect import * rule list * folder rules module * folder rules module * backwards compatibility for ADW * reduce core module usage
This commit is contained in:
@@ -23,13 +23,16 @@
|
||||
*/
|
||||
|
||||
import { Component } from '@angular/core';
|
||||
import { AppSidenavModule } from '../sidenav.module';
|
||||
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
||||
import { AppTestingModule } from '../../../testing/app-testing.module';
|
||||
import { Router, NavigationEnd } from '@angular/router';
|
||||
import { Subject } from 'rxjs';
|
||||
import { ActiveLinkDirective } from './active-link.directive';
|
||||
import { ActionDirective } from './action.directive';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [ActiveLinkDirective, ActionDirective],
|
||||
selector: 'app-test-component',
|
||||
template: ` <span id="test-element" acaActiveLink="active-link-class" [action]="item"></span> `
|
||||
})
|
||||
@@ -56,8 +59,7 @@ describe('ActionDirective', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [AppTestingModule, AppSidenavModule],
|
||||
declarations: [TestComponent],
|
||||
imports: [AppTestingModule, ActiveLinkDirective, TestComponent],
|
||||
providers: [
|
||||
{
|
||||
provide: Router,
|
||||
|
Reference in New Issue
Block a user