module.exports = { response: function (ctx) { return new Promise((resolve, reject) => { setTimeout(() => { ctx.body = '

You waited 2s for this

' resolve() }, 2000) }) } }