72541: Fix tests, remove redundant injection and added JSDocs

This commit is contained in:
Kristof De Langhe
2020-09-07 12:01:23 +02:00
parent 18fdf7585e
commit de9f642bf9
7 changed files with 31 additions and 35 deletions

View File

@@ -195,7 +195,9 @@ export const returnUnauthorizedUrlTreeOnFalse = (router: Router) =>
/**
* Operator that returns a UrlTree to the unauthorized page when the boolean received is false
* @param router
* @param router Router
* @param redirect Redirect URL to add to the UrlTree. This is used to redirect back to the original route after the
* user accepts the agreement.
*/
export const returnEndUserAgreementUrlTreeOnFalse = (router: Router, redirect: string) =>
(source: Observable<boolean>): Observable<boolean | UrlTree> =>