mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Pre-Angular 9 upgrade fixes (#5712)
* remove deprecated angular/http * upgrade adf libs * fix production builds * ivy-compatible translate module usage * improved module usage * upgrade content services module * fix process services tests * upgrade process cloud tests * lint fixes * update core max size * fix insights test module * remove insights lazy loading workaround * fix insights module exports * * Fixed skipped form-cloud unit test and removed duplicated tests * cleanup the use of services Co-authored-by: sivakumar414ram <siva.kumar@muraai.com>
This commit is contained in:
@@ -16,17 +16,15 @@
|
||||
*/
|
||||
|
||||
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
||||
import { OVERLAY_PROVIDERS, OverlayModule } from '@angular/cdk/overlay';
|
||||
import { OverlayModule } from '@angular/cdk/overlay';
|
||||
import { Component } from '@angular/core';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { MatSnackBar, MatSnackBarModule, MatSnackBarConfig } from '@angular/material';
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { NotificationService } from './notification.service';
|
||||
import { TranslationMock } from '../../mock/translation.service.mock';
|
||||
import { TranslationService } from '../../services/translation.service';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { setupTestBed } from '../../testing/setup-test-bed';
|
||||
import { CoreTestingModule } from '../../testing/core.testing.module';
|
||||
|
||||
@Component({
|
||||
template: '',
|
||||
@@ -79,18 +77,14 @@ describe('NotificationService', () => {
|
||||
|
||||
setupTestBed({
|
||||
imports: [
|
||||
NoopAnimationsModule,
|
||||
CoreTestingModule,
|
||||
OverlayModule,
|
||||
MatSnackBarModule,
|
||||
HttpClientModule
|
||||
MatSnackBarModule
|
||||
],
|
||||
declarations: [ProvidesNotificationServiceComponent],
|
||||
providers: [
|
||||
NotificationService,
|
||||
MatSnackBar,
|
||||
OVERLAY_PROVIDERS,
|
||||
LiveAnnouncer,
|
||||
{ provide: TranslationService, useClass: TranslationMock }
|
||||
LiveAnnouncer
|
||||
]
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user