fix test
This commit is contained in:
parent
cb7e9b668a
commit
2d8db79cef
1 changed files with 1 additions and 1 deletions
|
|
@ -816,7 +816,7 @@ function testMithril(mock) {
|
|||
})
|
||||
test(function() {
|
||||
var error = m.prop("no error"), exception
|
||||
var prop = m.request({method: "GET", url: "test", deserialize: function() {throw new SyntaxError("error occurred")}}).then(null, error)
|
||||
var prop = m.request({method: "GET", url: "test", deserialize: function() {throw new TypeError("error occurred")}}).then(null, error)
|
||||
try {mock.XMLHttpRequest.$instances.pop().onreadystatechange()}
|
||||
catch (e) {exception = e}
|
||||
m.endComputation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue