mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
Change the redirect url using the current page url on shibboleth authentication
This commit is contained in:
21
src/app/shared/mocks/mock-native-window-ref.ts
Normal file
21
src/app/shared/mocks/mock-native-window-ref.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
export const MockWindow = {
|
||||
location: {
|
||||
_href: '',
|
||||
set href(url: string) {
|
||||
this._href = url;
|
||||
},
|
||||
get href() {
|
||||
return this._href;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export class NativeWindowRefMock {
|
||||
get nativeWindow(): any {
|
||||
return MockWindow;
|
||||
}
|
||||
}
|
||||
|
||||
export function NativeWindowMockFactory() {
|
||||
return new NativeWindowRefMock();
|
||||
}
|
Reference in New Issue
Block a user