mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
remove console.log
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
|
@@ -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(' ');
|
||||||
}));
|
}));
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
|
Reference in New Issue
Block a user