remove console.log

This commit is contained in:
Giuseppe Digilio
2022-09-21 09:54:49 +02:00
parent e072cdf75b
commit f2a6b8208f
4 changed files with 0 additions and 5 deletions

View File

@@ -50,7 +50,6 @@ describe('EndUserAgreementGuard', () => {
it('should return true', (done) => { it('should return true', (done) => {
environment.info.enableEndUserAgreement = false; environment.info.enableEndUserAgreement = false;
guard.canActivate(undefined, Object.assign({ url: 'redirect' })).subscribe((result) => { guard.canActivate(undefined, Object.assign({ url: 'redirect' })).subscribe((result) => {
console.log(result);
expect(result).toEqual(true); expect(result).toEqual(true);
done(); done();
}); });

View File

@@ -111,7 +111,6 @@ export class OrcidAuthService {
).pipe( ).pipe(
map(([authorizeUrl, clientId, scopes]) => { map(([authorizeUrl, clientId, scopes]) => {
const redirectUri = new URLCombiner(this._window.nativeWindow.origin, encodeURIComponent(this.router.url.split('?')[0])); const redirectUri = new URLCombiner(this._window.nativeWindow.origin, encodeURIComponent(this.router.url.split('?')[0]));
console.log(redirectUri.toString());
return authorizeUrl.values[0] + '?client_id=' + clientId.values[0] + '&redirect_uri=' + redirectUri + '&response_type=code&scope=' return authorizeUrl.values[0] + '?client_id=' + clientId.values[0] + '&redirect_uri=' + redirectUri + '&response_type=code&scope='
+ scopes.values.join(' '); + scopes.values.join(' ');
})); }));

View File

@@ -22,7 +22,6 @@ describe('ItemPageComponent', () => {
class AcceptNoneGuard implements CanActivate { class AcceptNoneGuard implements CanActivate {
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree { canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
console.log('BLA');
return observableOf(false); return observableOf(false);
} }
} }

View File

@@ -196,8 +196,6 @@ describe('SubmissionFormFooterComponent', () => {
const confirmBtn: any = ((document as any).querySelector('.btn-danger:nth-child(2)')); const confirmBtn: any = ((document as any).querySelector('.btn-danger:nth-child(2)'));
console.log(confirmBtn);
confirmBtn.click(); confirmBtn.click();
fixture.detectChanges(); fixture.detectChanges();