Call onreadystatechange in handler
This commit is contained in:
parent
c21566366e
commit
11f05e3180
3 changed files with 4 additions and 6 deletions
|
|
@ -648,7 +648,7 @@ describe("m.mount()", function () {
|
|||
})
|
||||
|
||||
function resolveXhr() {
|
||||
mock.XMLHttpRequest.$instances.pop().$resolve().onreadystatechange()
|
||||
mock.XMLHttpRequest.$instances.pop().$resolve()
|
||||
mock.requestAnimationFrame.$resolve()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue