ensure internal streams have same constructor as public streams

This commit is contained in:
Leo Horie 2016-08-24 01:08:20 -04:00
parent 678e4912c7
commit f201ea73ff
7 changed files with 39 additions and 33 deletions

View file

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