mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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', () => {
|
||||
|
Reference in New Issue
Block a user