const { location } = window;
const config: any = {
keepWebServiceUrl: 'http://localhost',
- keepWebServiceInlineUrl: 'http://localhost'
+ keepWebServiceInlineUrl: 'http://localhost-inline'
};
const redirectTo = '/test123';
const locationTemplate = {
delete window.location;
window.location = {
...locationTemplate,
- href: `${location.href}?redirectToPreview=${redirectTo}`,
+ href: `${location.href}?redirectToDownload=${redirectTo}`,
} as any;
Object.defineProperty(window, 'localStorage', {
value: {
storeRedirects();
// then
- expect(window.localStorage.setItem).toHaveBeenCalledWith('redirectToPreview', redirectTo);
+ expect(window.localStorage.setItem).toHaveBeenCalledWith('redirectToDownload', redirectTo);
});
});
delete window.location;
window.location = {
...locationTemplate,
- href: `${location.href}?redirectToPreview=${redirectTo}`,
+ href: `${location.href}?redirectToDownload=${redirectTo}`,
} as any;;
Object.defineProperty(window, 'localStorage', {
value: {