add tests
This commit is contained in:
parent
4259c06a0a
commit
57021b6b5e
2 changed files with 64 additions and 0 deletions
|
|
@ -158,7 +158,9 @@ mock.window = (function() {
|
|||
}())
|
||||
window.location = {search: "", pathname: "", hash: ""},
|
||||
window.history = {}
|
||||
window.history.$$length = 0
|
||||
window.history.pushState = function(data, title, url) {
|
||||
window.history.$$length++
|
||||
window.location.pathname = window.location.search = window.location.hash = url
|
||||
},
|
||||
window.history.replaceState = function(data, title, url) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue