请问 怎么设置window.location.href的值
来源:2-12 Jest 中的 Mock(2)

小马小马Eric
2019-10-15
需要测试的代码段:
const query = queryString.parse(location.search) || {}
…
所以需要修改location
写回答
1回答
-
Dell
2019-10-17
是需要跳转页面吗?
012019-10-21
相似问题
怎么测试submit
回答 1
快照
回答 2