Spy on method§. Spying on window.location does make the test pass: // window.location.reload = jest.
確定! 回上一頁