#1039 ignore url interpolations without mapped values
This commit is contained in:
parent
db17958f0b
commit
dee64503db
4 changed files with 9 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue