Fix inflexible/slightly broken m.request tests
This commit is contained in:
parent
7f7a0a3815
commit
c21566366e
3 changed files with 27 additions and 4 deletions
|
|
@ -648,7 +648,7 @@ describe("m.mount()", function () {
|
|||
})
|
||||
|
||||
function resolveXhr() {
|
||||
mock.XMLHttpRequest.$instances.pop().onreadystatechange()
|
||||
mock.XMLHttpRequest.$instances.pop().$resolve().onreadystatechange()
|
||||
mock.requestAnimationFrame.$resolve()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue