describe('helpers', () => {
// given
- const url = 'https://collections.ardev.roche.com/c=ardev-4zz18-k0hamvtwyit6q56/t=v2/a/b/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', () => {
const result = sanitizeToken(url);
// then
- expect(result).toBe('https://collections.ardev.roche.com/c=ardev-4zz18-k0hamvtwyit6q56/LIMS/1.html?api_token=v2/a/b');
+ expect(result).toBe('https://example.com/c=zzzzz/LIMS/1.html?api_token=v2/a/b');
});
});
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