projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
16005: Open collection and project in new tab feature added
[arvados-workbench2.git]
/
src
/
views-components
/
context-menu
/
actions
/
helpers.test.ts
diff --git
a/src/views-components/context-menu/actions/helpers.test.ts
b/src/views-components/context-menu/actions/helpers.test.ts
index 9750a1cc6c8203fd45bf2d7f72c03bbfccf89adf..4234a8cc3a5ea594ef62f760a505dd5fab3255b8 100644
(file)
--- a/
src/views-components/context-menu/actions/helpers.test.ts
+++ b/
src/views-components/context-menu/actions/helpers.test.ts
@@
-6,7
+6,7
@@
import { sanitizeToken, getClipboardUrl } from "./helpers";
describe('helpers', () => {
// given
describe('helpers', () => {
// given
- const url = 'https://
collections.ardev.roche.com/c=ardev-4zz18-k0hamvtwyit6q56/t=v2/arlog-gj3su-stk5unu8570brvs/fryzaq6z1ow1npak5nngldtkoup918isrvlualf134uf1fbtd
/LIMS/1.html';
+ const url = 'https://
example.com/c=zzzzz/t=v2/a/b
/LIMS/1.html';
describe('sanitizeToken', () => {
it('should sanitize token from the url', () => {
describe('sanitizeToken', () => {
it('should sanitize token from the url', () => {
@@
-14,7
+14,7
@@
describe('helpers', () => {
const result = sanitizeToken(url);
// then
const result = sanitizeToken(url);
// then
- expect(result).toBe('https://
collections.ardev.roche.com/c=ardev-4zz18-k0hamvtwyit6q56/LIMS/1.html?api_token=v2/arlog-gj3su-stk5unu8570brvs/fryzaq6z1ow1npak5nngldtkoup918isrvlualf134uf1fbtd
');
+ expect(result).toBe('https://
example.com/c=zzzzz/LIMS/1.html?api_token=v2/a/b
');
});
});
});
});
@@
-24,7
+24,7
@@
describe('helpers', () => {
const result = getClipboardUrl(url);
// then
const result = getClipboardUrl(url);
// then
- expect(result).toBe('http://localhost?redirectTo=https://
collections.ardev.roche.com/c=ardev-4zz18-k0hamvtwyit6q56
/LIMS/1.html');
+ expect(result).toBe('http://localhost?redirectTo=https://
example.com/c=zzzzz
/LIMS/1.html');
});
});
});
\ No newline at end of file
});
});
});
\ No newline at end of file