[ADF-587] upgrade components to angular 4 (#1866)

[ADF-587]  upgrade components to angular 4
This commit is contained in:
Denys Vuika
2017-05-09 09:45:11 +01:00
committed by Eugenio Romano
parent 5ba1202292
commit e29741d18d
48 changed files with 297 additions and 270 deletions

View File

@@ -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;

View File

@@ -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.

View File

@@ -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