[ACS-5308] cleanup content common module and move to standalone components (#3234)

* language picker

* location link

* logout component

* logout: fix tests

* toggle shared component

* user info component

* cleanup common module

* migrate generic error to standalone

* thumbnail column component

* name column component

* tags column component

* locked by component

* cleanup module dependencies

* comments tab component

* info drawer and details

* cleanup infodrawer module

* remove useless test

* reduce useless imports

* info drawer module

* context menu component
This commit is contained in:
Denys Vuika
2023-05-29 10:28:26 +01:00
committed by GitHub
parent 40c4740b3a
commit 251b6a0ec7
52 changed files with 291 additions and 384 deletions

View File

@@ -29,27 +29,29 @@ import { Store } from '@ngrx/store';
import { of } from 'rxjs';
import { CoreModule, UserPreferencesService } from '@alfresco/adf-core';
import { ContextMenuService } from './context-menu.service';
import { ContextMenuModule } from './context-menu.module';
import { TranslateModule } from '@ngx-translate/core';
import { ContextMenuComponent } from './context-menu.component';
import { ContextmenuOverlayConfig } from './interfaces';
describe('ContextMenuService', () => {
let contextMenuService;
let overlay;
let injector;
let userPreferencesService;
const overlayConfig = {
let contextMenuService: ContextMenuService;
let overlay: Overlay;
let injector: Injector;
let userPreferencesService: UserPreferencesService;
const overlayConfig: ContextmenuOverlayConfig = {
hasBackdrop: false,
backdropClass: '',
panelClass: 'test-panel',
source: {
x: 1,
y: 1
}
} as any
};
beforeEach(() => {
TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), CoreModule.forRoot(), ContextMenuModule],
imports: [TranslateModule.forRoot(), CoreModule.forRoot(), ContextMenuComponent],
providers: [Overlay, { provide: Store, useValue: { select: () => of() } }, UserPreferencesService]
});