prevent stupid error on GET w/ data

This commit is contained in:
Leo Horie 2014-11-13 20:05:44 -05:00
parent 35f4d87f67
commit 5501d23652
2 changed files with 10 additions and 2 deletions

View file

@ -1699,6 +1699,11 @@ function testMithril(mock) {
mock.XMLHttpRequest.$instances.pop().onreadystatechange()
return prop() === "bar"
})
test(function() {
var prop = m.request({method: "GET", url: "test", data: {foo: 1}})
mock.XMLHttpRequest.$instances.pop().onreadystatechange()
return prop().url === "test?foo=1"
})
// m.request over jsonp
test(function(){