Skip to content

Commit

Permalink
fix yet another BC
Browse files Browse the repository at this point in the history
  • Loading branch information
BSekula authored and MichalKinas committed Sep 5, 2024
1 parent 7f21d21 commit 74b9f98
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { AuthenticationService, CORE_PIPES, PageTitleService } from '@alfresco/a
import { BreadcrumbComponent, ContentService, SearchQueryBuilderService } from '@alfresco/adf-content-services';
import { By } from '@angular/platform-browser';
import { ContentActionRef } from '@alfresco/adf-extensions';
import { MatSnackBarModule } from '@angular/material/snack-bar';

describe('DetailsComponent', () => {
let component: DetailsComponent;
Expand All @@ -63,7 +64,7 @@ describe('DetailsComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [AppTestingModule, DetailsComponent, ...CORE_PIPES],
imports: [AppTestingModule, DetailsComponent, ...CORE_PIPES, MatSnackBarModule],
providers: [
RouterTestingModule,
SearchQueryBuilderService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { of, throwError } from 'rxjs';
import { LibraryEffects } from '../../store/effects';
import { NodeEntry } from '@alfresco/js-api';
import { getTitleElementText } from '../../testing/test-utils';
import { MatSnackBarModule } from '@angular/material/snack-bar';

describe('FavoriteLibrariesComponent', () => {
let fixture: ComponentFixture<FavoriteLibrariesComponent>;
Expand All @@ -57,7 +58,7 @@ describe('FavoriteLibrariesComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [AppTestingModule, EffectsModule.forRoot([RouterEffects, LibraryEffects]), FavoriteLibrariesComponent]
imports: [AppTestingModule, EffectsModule.forRoot([RouterEffects, LibraryEffects]), FavoriteLibrariesComponent, MatSnackBarModule]
});

fixture = TestBed.createComponent(FavoriteLibrariesComponent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { FavoritesComponent } from './favorites.component';
import { AppTestingModule } from '../../testing/app-testing.module';
import { AppService, ContentApiService } from '@alfresco/aca-shared';
import { getTitleElementText } from '../../testing/test-utils';
import { MatSnackBarModule } from '@angular/material/snack-bar';

describe('FavoritesComponent', () => {
let fixture: ComponentFixture<FavoritesComponent>;
Expand All @@ -40,7 +41,7 @@ describe('FavoritesComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [AppTestingModule, FavoritesComponent],
imports: [AppTestingModule, FavoritesComponent, MatSnackBarModule],
providers: [
{
provide: AppService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { of, Subject, throwError } from 'rxjs';
import { By } from '@angular/platform-browser';
import { NodeEntry, NodePaging, Node, PathElement } from '@alfresco/js-api';
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
import { MatSnackBarModule } from '@angular/material/snack-bar';

describe('FilesComponent', () => {
let node;
Expand Down Expand Up @@ -66,7 +67,7 @@ describe('FilesComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [AppTestingModule, FilesComponent],
imports: [AppTestingModule, FilesComponent, MatSnackBarModule],
providers: [
{
provide: Router,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { Actions } from '@ngrx/effects';
import { of, Subject } from 'rxjs';
import { ContentActionType } from '@alfresco/adf-extensions';
import { CategoryService, ContentMetadataComponent, ContentMetadataService, TagService } from '@alfresco/adf-content-services';
import { MatDialogModule } from '@angular/material/dialog';

describe('MetadataTabComponent', () => {
let fixture: ComponentFixture<MetadataTabComponent>;
Expand All @@ -54,7 +55,7 @@ describe('MetadataTabComponent', () => {
beforeEach(() => {
actions$ = new Subject<EditOfflineAction>();
TestBed.configureTestingModule({
imports: [AppTestingModule, MetadataTabComponent, PipeModule],
imports: [AppTestingModule, MetadataTabComponent, PipeModule, MatDialogModule],
providers: [
{
provide: Actions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { EffectsModule } from '@ngrx/effects';
import { LibraryEffects } from '../../store/effects';
import { ContentApiService } from '@alfresco/aca-shared';
import { getTitleElementText } from '../../testing/test-utils';
import { MatSnackBarModule } from '@angular/material/snack-bar';

describe('LibrariesComponent', () => {
let fixture: ComponentFixture<LibrariesComponent>;
Expand All @@ -51,7 +52,7 @@ describe('LibrariesComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [AppTestingModule, EffectsModule.forRoot([LibraryEffects]), LibrariesComponent]
imports: [AppTestingModule, EffectsModule.forRoot([LibraryEffects]), LibrariesComponent, MatSnackBarModule]
});

fixture = TestBed.createComponent(LibrariesComponent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { Router } from '@angular/router';
import { NodePaging, SearchApi } from '@alfresco/js-api';
import { of } from 'rxjs';
import { getTitleElementText } from '../../testing/test-utils';
import { MatSnackBarModule } from '@angular/material/snack-bar';

describe('RecentFilesComponent', () => {
let fixture: ComponentFixture<RecentFilesComponent>;
Expand All @@ -39,7 +40,7 @@ describe('RecentFilesComponent', () => {
const searchApi = jasmine.createSpyObj('SearchApi', ['search']);

const testBed = TestBed.configureTestingModule({
imports: [AppTestingModule, RecentFilesComponent],
imports: [AppTestingModule, RecentFilesComponent, MatSnackBarModule],
providers: [{ provide: SearchApi, useValue: searchApi }]
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { SearchLibrariesResultsComponent } from './search-libraries-results.comp
import { SearchLibrariesQueryBuilderService } from './search-libraries-query-builder.service';
import { BehaviorSubject, Subject } from 'rxjs';
import { AppService } from '@alfresco/aca-shared';
import { MatSnackBarModule } from '@angular/material/snack-bar';

describe('SearchLibrariesResultsComponent', () => {
let component: SearchLibrariesResultsComponent;
Expand All @@ -44,7 +45,7 @@ describe('SearchLibrariesResultsComponent', () => {
beforeEach(() => {
appServiceMock.setAppNavbarMode.calls.reset();
TestBed.configureTestingModule({
imports: [AppTestingModule, SearchLibrariesResultsComponent],
imports: [AppTestingModule, SearchLibrariesResultsComponent, MatSnackBarModule],
schemas: [NO_ERRORS_SCHEMA],
providers: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { ActivatedRoute, Router } from '@angular/router';
import { BehaviorSubject, Subject } from 'rxjs';
import { AppTestingModule } from '../../../testing/app-testing.module';
import { AppService } from '@alfresco/aca-shared';
import { MatSnackBarModule } from '@angular/material/snack-bar';

describe('SearchComponent', () => {
let component: SearchResultsComponent;
Expand All @@ -49,7 +50,7 @@ describe('SearchComponent', () => {
beforeEach(() => {
params = new BehaviorSubject({ q: 'TYPE: "cm:folder" AND %28=cm: name: email OR cm: name: budget%29' });
TestBed.configureTestingModule({
imports: [AppTestingModule, SearchResultsComponent],
imports: [AppTestingModule, SearchResultsComponent, MatSnackBarModule],
providers: [
{
provide: AppService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { SharedLinkPaging } from '@alfresco/js-api';
import { AppService } from '@alfresco/aca-shared';
import { getTitleElementText } from '../../testing/test-utils';
import { ActivatedRoute, Router } from '@angular/router';
import { MatSnackBarModule } from '@angular/material/snack-bar';

describe('SharedFilesComponent', () => {
let fixture: ComponentFixture<SharedFilesComponent>;
Expand All @@ -56,7 +57,7 @@ describe('SharedFilesComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [AppTestingModule, SharedFilesComponent],
imports: [AppTestingModule, SharedFilesComponent, MatSnackBarModule],
providers: [
{ provide: ActivatedRoute, useValue: route },
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { AlfrescoApiService } from '@alfresco/adf-content-services';
import { TrashcanComponent } from './trashcan.component';
import { AppTestingModule } from '../../testing/app-testing.module';
import { getTitleElementText } from '../../testing/test-utils';
import { MatSnackBarModule } from '@angular/material/snack-bar';

describe('TrashcanComponent', () => {
let fixture: ComponentFixture<TrashcanComponent>;
Expand All @@ -35,7 +36,7 @@ describe('TrashcanComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [AppTestingModule, TrashcanComponent]
imports: [AppTestingModule, TrashcanComponent, MatSnackBarModule]
});

fixture = TestBed.createComponent(TrashcanComponent);
Expand Down

0 comments on commit 74b9f98

Please sign in to comment.