mock response routes no longer pay attention to query strings

This commit is contained in:
Lloyd Brookes
2015-11-27 22:48:53 +00:00
parent 383d48473c
commit 0c78138fd9
5 changed files with 16 additions and 16 deletions

View File

@ -1,5 +1,5 @@
module.exports = {
response: function (ctx, id, name) {
ctx.body = `<h1>id: ${id}, name: ${name}</h1>`
response: function (ctx, id) {
ctx.body = `<h1>id: ${id}, name: ${ctx.query.name}</h1>`
}
}