mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Remove MaterialModule from imports (#3938)
This commit is contained in:
@@ -44,7 +44,7 @@ import { NgModule } from '@angular/core';
|
|||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
import { ExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions';
|
import { ExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions';
|
||||||
import { CoreModule, MaterialModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
|
import { CoreModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
|
||||||
|
|
||||||
import { MyExtensionComponent } from './my-extension.component';
|
import { MyExtensionComponent } from './my-extension.component';
|
||||||
import { MyExtensionService } from './my-extension.service';
|
import { MyExtensionService } from './my-extension.service';
|
||||||
@@ -54,7 +54,7 @@ export function components() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [CoreModule, BrowserModule, FormsModule, MaterialModule],
|
imports: [CoreModule, BrowserModule, FormsModule],
|
||||||
providers: [
|
providers: [
|
||||||
{
|
{
|
||||||
provide: TRANSLATION_PROVIDER,
|
provide: TRANSLATION_PROVIDER,
|
||||||
|
@@ -32,11 +32,12 @@ import { Store } from '@ngrx/store';
|
|||||||
import { Component } from '@angular/core';
|
import { Component } 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 { AuthModule, MaterialModule } from '@alfresco/adf-core';
|
import { AuthModule } 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 { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'aca-test',
|
selector: 'aca-test',
|
||||||
@@ -61,7 +62,7 @@ describe('PageComponent', () => {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [LibTestingModule, MaterialModule, AuthModule.forRoot()],
|
imports: [LibTestingModule, AuthModule.forRoot(), MatDialogModule],
|
||||||
declarations: [TestComponent],
|
declarations: [TestComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock },
|
{ provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock },
|
||||||
@@ -211,7 +212,7 @@ describe('Info Drawer state', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [NoopAnimationsModule, HttpClientModule, RouterTestingModule, MaterialModule, AuthModule.forRoot()],
|
imports: [NoopAnimationsModule, HttpClientModule, RouterTestingModule, AuthModule.forRoot(), MatDialogModule],
|
||||||
declarations: [TestComponent],
|
declarations: [TestComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock },
|
{ provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock },
|
||||||
|
Reference in New Issue
Block a user