mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-587] upgrade components to angular 4 (#1866)
[ADF-587] upgrade components to angular 4
This commit is contained in:
committed by
Eugenio Romano
parent
5ba1202292
commit
e29741d18d
@@ -33,7 +33,7 @@ const mockBackendResponse = (connection: MockConnection, response: string) => {
|
||||
|
||||
describe('TranslateLoader', () => {
|
||||
let injector: Injector;
|
||||
let backend: MockBackend;
|
||||
let backend: any;
|
||||
let alfrescoTranslationService: AlfrescoTranslationService;
|
||||
let connection: MockConnection; // this will be set when a new connection is emitted from the backend.
|
||||
let customLoader;
|
||||
|
@@ -31,7 +31,7 @@ const mockBackendResponse = (connection: MockConnection, response: string) => {
|
||||
|
||||
describe('AlfrescoTranslationService', () => {
|
||||
let injector: Injector;
|
||||
let backend: MockBackend;
|
||||
let backend: any;
|
||||
let alfrescoTranslationService: AlfrescoTranslationService;
|
||||
let connection: MockConnection; // this will be set when a new connection is emitted from the backend.
|
||||
|
||||
|
@@ -15,6 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { Component } from '@angular/core';
|
||||
import { NotificationService } from './notification.service';
|
||||
import { MdSnackBarModule } from '@angular/material';
|
||||
@@ -24,7 +25,10 @@ describe('NotificationService', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [MdSnackBarModule.forRoot()],
|
||||
imports: [
|
||||
BrowserAnimationsModule,
|
||||
MdSnackBarModule.forRoot()
|
||||
],
|
||||
declarations: [ComponentThatProvidesNotificationService],
|
||||
providers: [
|
||||
NotificationService
|
||||
|
Reference in New Issue
Block a user