mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-10 14:11:17 +00:00
Fix pipeline for PR
This commit is contained in:
@@ -25,8 +25,7 @@
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { BrowserAnimationsModule, NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
|
||||
import { TRANSLATION_PROVIDER, AppConfigService, DebugAppConfigService, CoreModule, AuthGuard } from '@alfresco/adf-core';
|
||||
import { TRANSLATION_PROVIDER, AppConfigService, DebugAppConfigService, CoreModule, AuthGuard, AuthModule } from '@alfresco/adf-core';
|
||||
import { AppService } from '@alfresco/aca-shared';
|
||||
|
||||
import { AppExtensionsModule } from './extensions.module';
|
||||
@@ -102,7 +101,8 @@ registerLocaleData(localeSv);
|
||||
ShellModule.withRoutes({
|
||||
shellChildren: [CONTENT_LAYOUT_ROUTES]
|
||||
}),
|
||||
ContentServiceExtensionModule
|
||||
ContentServiceExtensionModule,
|
||||
AuthModule.forRoot({ useHash: true })
|
||||
],
|
||||
providers: [
|
||||
{ provide: AppService, useClass: AppService },
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { AosEditOnlineService } from './aos-extension.service';
|
||||
import { AppConfigService, AuthenticationService, LogService, NotificationService } from '@alfresco/adf-core';
|
||||
import { AppConfigService, AuthenticationService, AuthModule, LogService, NotificationService } from '@alfresco/adf-core';
|
||||
import { LibTestingModule } from '@alfresco/aca-shared';
|
||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
|
||||
@@ -37,7 +37,7 @@ describe('AosEditOnlineService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [LibTestingModule, MatSnackBarModule],
|
||||
imports: [LibTestingModule, MatSnackBarModule, AuthModule.forRoot()],
|
||||
providers: [{ provide: LogService, useValue: { error() {} } }]
|
||||
});
|
||||
|
||||
|
@@ -27,7 +27,7 @@ import { Overlay } from '@angular/cdk/overlay';
|
||||
import { Injector } from '@angular/core';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { of } from 'rxjs';
|
||||
import { CoreModule, UserPreferencesService } from '@alfresco/adf-core';
|
||||
import { AuthModule, CoreModule, UserPreferencesService } from '@alfresco/adf-core';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { ContextMenuComponent } from './context-menu.component';
|
||||
@@ -51,7 +51,7 @@ describe('ContextMenuService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TranslateModule.forRoot(), CoreModule.forRoot(), ContextMenuComponent],
|
||||
imports: [TranslateModule.forRoot(), CoreModule.forRoot(), ContextMenuComponent, AuthModule.forRoot()],
|
||||
providers: [Overlay, { provide: Store, useValue: { select: () => of() } }, UserPreferencesService]
|
||||
});
|
||||
|
||||
|
@@ -32,6 +32,7 @@ import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
import { of } from 'rxjs';
|
||||
import { ContentActionType } from '@alfresco/adf-extensions';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { AuthModule } from '@alfresco/adf-core';
|
||||
|
||||
describe('CustomNameColumnComponent', () => {
|
||||
let fixture: ComponentFixture<CustomNameColumnComponent>;
|
||||
@@ -44,6 +45,7 @@ describe('CustomNameColumnComponent', () => {
|
||||
HttpClientModule,
|
||||
TranslateModule.forRoot(),
|
||||
CustomNameColumnComponent,
|
||||
AuthModule.forRoot(),
|
||||
StoreModule.forRoot(
|
||||
{ app: (state) => state },
|
||||
{
|
||||
|
@@ -22,9 +22,9 @@
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { PageComponent } from './document-base-page.component';
|
||||
import { ReloadDocumentListAction, SetSelectedNodesAction, AppState, ViewNodeAction } from '@alfresco/aca-shared/store';
|
||||
import { AppState, ReloadDocumentListAction, SetSelectedNodesAction, ViewNodeAction } from '@alfresco/aca-shared/store';
|
||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
import { NodeEntry, NodePaging, RepositoryInfo, VersionInfo } from '@alfresco/js-api';
|
||||
import { DocumentBasePageService } from './document-base-page.service';
|
||||
@@ -32,12 +32,12 @@ import { Store, StoreModule } from '@ngrx/store';
|
||||
import { Component, Injectable } from '@angular/core';
|
||||
import { DiscoveryApiService, DocumentListComponent } from '@alfresco/adf-content-services';
|
||||
import { MockStore, provideMockStore } from '@ngrx/store/testing';
|
||||
import { MaterialModule, PipeModule } from '@alfresco/adf-core';
|
||||
import { AuthModule, MaterialModule, PipeModule } from '@alfresco/adf-core';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { EffectsModule } from '@ngrx/effects';
|
||||
import { BehaviorSubject, Observable, Subscription, of } from 'rxjs';
|
||||
import { BehaviorSubject, Observable, of, Subscription } from 'rxjs';
|
||||
|
||||
export const INITIAL_APP_STATE: AppState = {
|
||||
appName: 'Alfresco Content Application',
|
||||
@@ -112,6 +112,7 @@ describe('PageComponent', () => {
|
||||
HttpClientModule,
|
||||
RouterTestingModule,
|
||||
MaterialModule,
|
||||
AuthModule.forRoot(),
|
||||
StoreModule.forRoot(
|
||||
{ app: (state) => state },
|
||||
{
|
||||
@@ -292,7 +293,7 @@ describe('Info Drawer state', () => {
|
||||
};
|
||||
|
||||
TestBed.configureTestingModule({
|
||||
imports: [NoopAnimationsModule, HttpClientModule, RouterTestingModule, MaterialModule],
|
||||
imports: [NoopAnimationsModule, HttpClientModule, RouterTestingModule, MaterialModule, AuthModule.forRoot()],
|
||||
declarations: [TestComponent],
|
||||
providers: [
|
||||
{ provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock },
|
||||
|
@@ -25,20 +25,20 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { initialState, LibTestingModule } from '../testing/lib-testing-module';
|
||||
import { AppExtensionService } from './app.extension.service';
|
||||
import { Store, Action } from '@ngrx/store';
|
||||
import { Action, Store } from '@ngrx/store';
|
||||
import { AppStore } from '@alfresco/aca-shared/store';
|
||||
import {
|
||||
ContentActionType,
|
||||
mergeArrays,
|
||||
sortByOrder,
|
||||
filterEnabled,
|
||||
reduceSeparators,
|
||||
reduceEmptyMenus,
|
||||
ExtensionService,
|
||||
ExtensionConfig,
|
||||
NavBarGroupRef
|
||||
ExtensionService,
|
||||
filterEnabled,
|
||||
mergeArrays,
|
||||
NavBarGroupRef,
|
||||
reduceEmptyMenus,
|
||||
reduceSeparators,
|
||||
sortByOrder
|
||||
} from '@alfresco/adf-extensions';
|
||||
import { AppConfigService, LogService } from '@alfresco/adf-core';
|
||||
import { AppConfigService, AuthModule, LogService } from '@alfresco/adf-core';
|
||||
import { provideMockStore } from '@ngrx/store/testing';
|
||||
import { hasQuickShareEnabled } from '@alfresco/aca-shared/rules';
|
||||
import { MatIconRegistry } from '@angular/material/icon';
|
||||
@@ -56,7 +56,7 @@ describe('AppExtensionService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [LibTestingModule],
|
||||
imports: [LibTestingModule, AuthModule.forRoot()],
|
||||
providers: [provideMockStore({ initialState })]
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user