[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:
Cilibiu Bogdan
2018-10-09 18:52:46 +03:00
committed by Denys Vuika
parent 94b1420e6e
commit 253425971f
3 changed files with 55 additions and 4 deletions

View File

@@ -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');