add post version of previous test

This commit is contained in:
Leo Horie 2014-11-13 20:15:52 -05:00
parent bc7f61d519
commit a4067b085a

View file

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