From 2d8db79cef712aa00fbbdb39793b8cb489a5db95 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Wed, 4 Jun 2014 09:22:49 -0400 Subject: [PATCH] fix test --- tests/mithril-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mithril-tests.js b/tests/mithril-tests.js index 9aa82bed..b369d34e 100644 --- a/tests/mithril-tests.js +++ b/tests/mithril-tests.js @@ -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()