Jest Kunjungi halaman
expect(global.window.location.pathname).toEqual('/new-url');
Exuberant Emu
expect(global.window.location.pathname).toEqual('/new-url');