Merge remote-tracking branch 'origin/next' into ctx-reuse-flag
This commit is contained in:
commit
1a57bcc403
6 changed files with 142 additions and 101 deletions
|
|
@ -2246,6 +2246,13 @@ function testMithril(mock) {
|
|||
xhr.onreadystatechange()
|
||||
return xhr.$headers["Content-Type"] === undefined
|
||||
})
|
||||
test(function() {
|
||||
var prop = m.request({method: "POST", url: "test", initialValue: "foo"}).then(function(data) { return data; })
|
||||
var initialValue = prop();
|
||||
mock.XMLHttpRequest.$instances.pop().onreadystatechange()
|
||||
|
||||
return initialValue === "foo"
|
||||
})
|
||||
test(function() {
|
||||
var prop = m.request({method: "POST", url: "test", initialValue: "foo"})
|
||||
var initialValue = prop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue