JEST Visite uma página
expect(global.window.location.pathname).toEqual('/new-url');
Exuberant Emu
expect(global.window.location.pathname).toEqual('/new-url');