#1039 ignore url interpolations without mapped values

This commit is contained in:
Leo Horie 2016-05-06 11:49:00 -04:00
parent db17958f0b
commit dee64503db
4 changed files with 9 additions and 3 deletions

View file

@ -195,6 +195,12 @@ describe("m.request()", function () {
expect(prop().url).to.equal("/test")
})
it("ignores interpolations without data", function () { // eslint-disable-line
var prop = m.request({method: "GET", url: "/test:notfound", data: {foo: 1}})
resolve()
expect(prop().url).to.equal("/test:notfound?foo=1")
})
it("appends children in query strings to `url` from `data` for `GET`", function () { // eslint-disable-line
var prop = m.request({method: "GET", url: "test", data: {foo: [1, 2]}})
resolve()