Clean pdf viewer unit (#4916)

* fix unit test pdf viewer

* add more clean unit test core

* add more clean unit test core

* Delete license-info-3.3.0.md
This commit is contained in:
Eugenio Romano
2019-07-10 20:03:05 +01:00
committed by GitHub
parent 3d336bf9bd
commit 7a70e88ae3
9 changed files with 1472 additions and 1484 deletions

View File

@@ -20,7 +20,6 @@ import { NodePaging, QueryBody } from '@alfresco/js-api';
import { Observable, Subject, from, throwError } from 'rxjs';
import { AlfrescoApiService } from './alfresco-api.service';
import { SearchConfigurationService } from './search-configuration.service';
import { catchError } from 'rxjs/operators';
@Injectable({
providedIn: 'root'
@@ -44,11 +43,9 @@ export class SearchService {
promise.then((nodePaging: NodePaging) => {
this.dataLoaded.next(nodePaging);
});
}).catch((err) => this.handleError(err));
return from(promise).pipe(
catchError((err) => this.handleError(err))
);
return from(promise);
}
/**
@@ -64,11 +61,9 @@ export class SearchService {
promise.then((nodePaging: NodePaging) => {
this.dataLoaded.next(nodePaging);
});
}).catch((err) => this.handleError(err));
return from(promise).pipe(
catchError((err) => this.handleError(err))
);
return from(promise);
}
/**
@@ -81,11 +76,9 @@ export class SearchService {
promise.then((nodePaging: NodePaging) => {
this.dataLoaded.next(nodePaging);
});
}).catch((err) => this.handleError(err));
return from(promise).pipe(
catchError((err: any) => this.handleError(err))
);
return from(promise);
}
private handleError(error: any): Observable<any> {