mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2569] fix reload app.config.json (#3124)
* fix reload app.config.json * improve style mobile fix test * test karma setup update * fix core providers test * remove unused providers * use mock api in service test * skip test in the wrong place * remove comma * remove fdescribe
This commit is contained in:
committed by
Denys Vuika
parent
21b8cd30ce
commit
9e2969b955
@@ -17,10 +17,7 @@
|
||||
|
||||
import { SimpleChange } from '@angular/core';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { AlfrescoApiService } from '../../services/alfresco-api.service';
|
||||
import { AuthenticationService } from '../../services/authentication.service';
|
||||
import { ContentService } from '../../services/content.service';
|
||||
import { SettingsService } from '../../services/settings.service';
|
||||
import { MaterialModule } from '../../material.module';
|
||||
import { ToolbarModule } from '../../toolbar/toolbar.module';
|
||||
|
||||
@@ -44,12 +41,7 @@ describe('Test Img viewer component ', () => {
|
||||
MaterialModule,
|
||||
ToolbarModule
|
||||
],
|
||||
declarations: [ImgViewerComponent],
|
||||
providers: [
|
||||
SettingsService,
|
||||
AuthenticationService,
|
||||
AlfrescoApiService
|
||||
]
|
||||
declarations: [ImgViewerComponent]
|
||||
}).compileComponents();
|
||||
service = TestBed.get(ContentService);
|
||||
}));
|
||||
|
@@ -20,10 +20,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { MediaPlayerComponent } from './mediaPlayer.component';
|
||||
|
||||
import {
|
||||
AlfrescoApiService,
|
||||
AuthenticationService,
|
||||
ContentService,
|
||||
SettingsService
|
||||
ContentService
|
||||
} from '../../services';
|
||||
|
||||
describe('Test Media player component ', () => {
|
||||
@@ -39,13 +36,7 @@ describe('Test Media player component ', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
|
||||
declarations: [MediaPlayerComponent],
|
||||
providers: [
|
||||
SettingsService,
|
||||
AuthenticationService,
|
||||
AlfrescoApiService
|
||||
]
|
||||
declarations: [MediaPlayerComponent]
|
||||
}).compileComponents();
|
||||
service = TestBed.get(ContentService);
|
||||
}));
|
||||
|
@@ -17,11 +17,6 @@
|
||||
|
||||
import { Component, SimpleChange, ViewChild } from '@angular/core';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import {
|
||||
AlfrescoApiService,
|
||||
AuthenticationService,
|
||||
SettingsService
|
||||
} from '../../services';
|
||||
import { MaterialModule } from '../../material.module';
|
||||
import { ToolbarModule } from '../../toolbar/toolbar.module';
|
||||
import { EventMock } from '../../mock/event.mock';
|
||||
@@ -152,9 +147,6 @@ describe('Test PdfViewer component', () => {
|
||||
}
|
||||
}
|
||||
},
|
||||
SettingsService,
|
||||
AuthenticationService,
|
||||
AlfrescoApiService,
|
||||
RenderingQueueServices
|
||||
]
|
||||
})
|
||||
|
@@ -17,11 +17,6 @@
|
||||
|
||||
import { SimpleChange } from '@angular/core';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import {
|
||||
AlfrescoApiService,
|
||||
AuthenticationService,
|
||||
SettingsService
|
||||
} from '../../services';
|
||||
import { TxtViewerComponent } from './txtViewer.component';
|
||||
|
||||
describe('Text View component', () => {
|
||||
@@ -32,12 +27,7 @@ describe('Text View component', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [TxtViewerComponent],
|
||||
providers: [
|
||||
SettingsService,
|
||||
AuthenticationService,
|
||||
AlfrescoApiService
|
||||
]
|
||||
declarations: [TxtViewerComponent]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
|
@@ -167,7 +167,6 @@ describe('ViewerComponent', () => {
|
||||
return Observable.throw('throwed');
|
||||
}
|
||||
}},
|
||||
AlfrescoApiService,
|
||||
RenderingQueueServices,
|
||||
{ provide: Location, useClass: SpyLocation }
|
||||
]
|
||||
|
Reference in New Issue
Block a user