mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1841] Hide app menu in preview (#698)
* hide menu in preview * fix getNodeInfo return value when no node is found
This commit is contained in:
committed by
Denys Vuika
parent
94b1420e6e
commit
253425971f
@@ -358,7 +358,7 @@ describe('PreviewComponent', () => {
|
||||
|
||||
it('should navigate to original location if node not found', async () => {
|
||||
spyOn(router, 'navigate').and.stub();
|
||||
spyOn(contentApi, 'getNodeInfo').and.returnValue(of(null));
|
||||
spyOn(contentApi, 'getNodeInfo').and.returnValue(Promise.reject('error'));
|
||||
|
||||
component.previewLocation = 'personal-files';
|
||||
await component.displayNode('folder1');
|
||||
|
Reference in New Issue
Block a user