diff --git a/packages/bruno-js/src/bruno-response.js b/packages/bruno-js/src/bruno-response.js index 57e11a646..9e68045d9 100644 --- a/packages/bruno-js/src/bruno-response.js +++ b/packages/bruno-js/src/bruno-response.js @@ -27,6 +27,15 @@ class BrunoResponse { getResponseTime() { return this.res ? this.res.responseTime : null; } + + setBody(data) { + if (!this.res) { + return; + } + + this.body = data; + this.res.data = data; + } } module.exports = BrunoResponse;