[no-issue] speed up test CS part 2 (#3009)

* remove tag and rating service the testbed

* remove unused import in modules

* pdf viewer async

* viewer test fixed

* remove testbed share datatable

* remove unused dependencies

* add missing parameter

* remove testbed from folder actions service

* TaskHeaderComponent async

* remove testbed from document actions and list

* remove unused import

* use done for nested test

* fast finish false
This commit is contained in:
Eugenio Romano
2018-02-28 17:15:52 +00:00
committed by GitHub
parent b359579078
commit 45426fd246
52 changed files with 410 additions and 561 deletions
@@ -17,7 +17,6 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { LikeComponent } from './like.component';
import { MaterialModule } from '../material.module';
import { RatingService } from './services/rating.service';
declare let jasmine: any;
@@ -30,7 +29,6 @@ describe('Like component', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ MaterialModule ],
declarations: [ LikeComponent ],
providers: [ RatingService ]
}).compileComponents();
@@ -17,7 +17,6 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RatingComponent } from './rating.component';
import { MaterialModule } from '../material.module';
import { RatingService } from './services/rating.service';
declare let jasmine: any;
@@ -30,9 +29,7 @@ describe('Rating component', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
MaterialModule
],
declarations: [
RatingComponent
],
@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { async, TestBed } from '@angular/core/testing';
import { AlfrescoApiService, AppConfigService, StorageService } from '@alfresco/adf-core';
import { RatingService } from './rating.service';
declare let jasmine: any;
@@ -24,17 +24,8 @@ describe('Rating service', () => {
let service;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [],
providers: [
RatingService
]
}).compileComponents();
}));
beforeEach(() => {
service = TestBed.get(RatingService);
service = new RatingService(new AlfrescoApiService(new AppConfigService(null), new StorageService()));
});
beforeEach(() => {