add post version of previous test
This commit is contained in:
parent
bc7f61d519
commit
a4067b085a
1 changed files with 5 additions and 0 deletions
|
|
@ -1704,6 +1704,11 @@ function testMithril(mock) {
|
||||||
mock.XMLHttpRequest.$instances.pop().onreadystatechange()
|
mock.XMLHttpRequest.$instances.pop().onreadystatechange()
|
||||||
return prop().url === "test?foo=1"
|
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
|
// m.request over jsonp
|
||||||
test(function(){
|
test(function(){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue