ensure internal streams have same constructor as public streams
This commit is contained in:
parent
678e4912c7
commit
f201ea73ff
7 changed files with 39 additions and 33 deletions
|
|
@ -188,6 +188,9 @@ o.spec("api", function() {
|
|||
o("works", function() {
|
||||
o(typeof m.request).equals("function") // TODO improve
|
||||
})
|
||||
o("return value is stream", function() {
|
||||
o(m.request({method: "GET", url: "[invalid]"}).constructor).equals(m.prop().constructor)
|
||||
})
|
||||
})
|
||||
o.spec("m.jsonp", function() {
|
||||
o("works", function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue