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