This commit is contained in:
Leo Horie 2014-06-04 09:22:49 -04:00
parent cb7e9b668a
commit 2d8db79cef

View file

@ -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()