projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
16812: Handoff token using query param
[arvados-workbench2.git]
/
src
/
common
/
redirect-to.test.ts
diff --git
a/src/common/redirect-to.test.ts
b/src/common/redirect-to.test.ts
index 177e16566896e6f6d723d457ce7850d6b70b3444..c7d3a84e8cec8ca42e4c0233117a760478b0524c 100644
(file)
--- a/
src/common/redirect-to.test.ts
+++ b/
src/common/redirect-to.test.ts
@@
-19,9
+19,9
@@
describe('redirect-to', () => {
port: '80',
protocol: 'http',
search: '',
port: '80',
protocol: 'http',
search: '',
- reload: () => {},
- replace: () => {},
- assign: () => {},
+ reload: () => {
},
+ replace: () => {
},
+ assign: () => {
},
ancestorOrigins: [],
href: '',
};
ancestorOrigins: [],
href: '',
};
@@
-72,10
+72,10
@@
describe('redirect-to', () => {
it('should redirect to page when it is present in session storage', () => {
// when
it('should redirect to page when it is present in session storage', () => {
// when
- handleRedirects(config);
+ handleRedirects(
"abcxyz",
config);
// then
// then
- expect(window.location.href).toBe(`${config.keepWebServiceUrl}${redirectTo}`);
+ expect(window.location.href).toBe(`${config.keepWebServiceUrl}${redirectTo}
?api_token=abcxyz
`);
});
});
});
});
-});
\ No newline at end of file
+});