mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[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:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user