mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
AAE-1841 - added delete directive test (#5547)
* AAE-1841 - start adding e2e for delete directive * AAE-1841 - added delete directive test * AAE-1841 - fixed PR review
This commit is contained in:
@@ -22,7 +22,7 @@ import { NodeEntry, Node, DeletedNodeEntity, DeletedNode } from '@alfresco/js-ap
|
||||
import { Observable, forkJoin, from, of } from 'rxjs';
|
||||
import { AlfrescoApiService } from '../services/alfresco-api.service';
|
||||
import { TranslationService } from '../services/translation.service';
|
||||
import { map, catchError } from 'rxjs/operators';
|
||||
import { map, catchError, retry } from 'rxjs/operators';
|
||||
|
||||
interface ProcessedNodeData {
|
||||
entry: Node | DeletedNode;
|
||||
@@ -119,6 +119,7 @@ export class NodeDeleteDirective implements OnChanges {
|
||||
}
|
||||
|
||||
return from(promise).pipe(
|
||||
retry(3),
|
||||
map(() => ({
|
||||
entry: node.entry,
|
||||
status: 1
|
||||
|
Reference in New Issue
Block a user