[ADF-3324] added redirect to 404 page when the shared link is invalid (#3749)

* [ADF-3324] added redirect to 404 page when the shared link is invalid

* [ADF-3324] removed fdescribe

* [ADF-3324] fixed documentation adding the new event
This commit is contained in:
Vito
2018-09-10 11:10:44 +01:00
committed by Eugenio Romano
parent d14810df56
commit 35e1563fde
5 changed files with 27 additions and 2 deletions

View File

@@ -624,6 +624,21 @@ describe('ViewerComponent', () => {
}));
it('should raise an event when the shared link is invalid', (done) => {
spyOn(alfrescoApiService.getInstance().core.sharedlinksApi, 'getSharedLink')
.and.returnValue(Promise.reject({}));
component.invalidSharedLink.subscribe(() => {
done();
});
component.sharedLinkId = 'the-Shared-Link-id';
component.urlFile = null;
component.mimeType = null;
component.ngOnChanges(null);
});
});
describe('MimeType handling', () => {