From a4067b085a081c6eae1c48c46ffec2417108cc46 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Thu, 13 Nov 2014 20:15:52 -0500 Subject: [PATCH] add post version of previous test --- tests/mithril-tests.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/mithril-tests.js b/tests/mithril-tests.js index d1c9ca13..6b3212d5 100644 --- a/tests/mithril-tests.js +++ b/tests/mithril-tests.js @@ -1704,6 +1704,11 @@ function testMithril(mock) { mock.XMLHttpRequest.$instances.pop().onreadystatechange() return prop().url === "test?foo=1" }) + test(function() { + var prop = m.request({method: "POST", url: "test", data: {foo: 1}}) + mock.XMLHttpRequest.$instances.pop().onreadystatechange() + return prop().url === "test" + }) // m.request over jsonp test(function(){