projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
19153: Update tests
[arvados.git]
/
src
/
common
/
redirect-to.test.ts
diff --git
a/src/common/redirect-to.test.ts
b/src/common/redirect-to.test.ts
index e25d7be9530826ff09f8c7d8845b44ea9e756fe1..0168fd803f327f484be2f848e805d4df503352b3 100644
(file)
--- a/
src/common/redirect-to.test.ts
+++ b/
src/common/redirect-to.test.ts
@@
-8,7
+8,7
@@
describe('redirect-to', () => {
const { location } = window;
const config: any = {
keepWebServiceUrl: 'http://localhost',
const { location } = window;
const config: any = {
keepWebServiceUrl: 'http://localhost',
- keepWebServiceInlineUrl: 'http://localhost'
+ keepWebServiceInlineUrl: 'http://localhost
-inline
'
};
const redirectTo = '/test123';
const locationTemplate = {
};
const redirectTo = '/test123';
const locationTemplate = {
@@
-36,7
+36,7
@@
describe('redirect-to', () => {
delete window.location;
window.location = {
...locationTemplate,
delete window.location;
window.location = {
...locationTemplate,
- href: `${location.href}?redirectTo=${redirectTo}`,
+ href: `${location.href}?redirectTo
Download
=${redirectTo}`,
} as any;
Object.defineProperty(window, 'localStorage', {
value: {
} as any;
Object.defineProperty(window, 'localStorage', {
value: {
@@
-51,7
+51,7
@@
describe('redirect-to', () => {
storeRedirects();
// then
storeRedirects();
// then
- expect(window.localStorage.setItem).toHaveBeenCalledWith('redirectTo', redirectTo);
+ expect(window.localStorage.setItem).toHaveBeenCalledWith('redirectTo
Download
', redirectTo);
});
});
});
});
@@
-60,7
+60,7
@@
describe('redirect-to', () => {
delete window.location;
window.location = {
...locationTemplate,
delete window.location;
window.location = {
...locationTemplate,
- href: `${location.href}?redirectTo=${redirectTo}`,
+ href: `${location.href}?redirectTo
Download
=${redirectTo}`,
} as any;;
Object.defineProperty(window, 'localStorage', {
value: {
} as any;;
Object.defineProperty(window, 'localStorage', {
value: {