Files
bruno/packages/bruno-tests/collection/scripting/api/res/getSize.bru
Anoop M D 56629663dc Remove flaky header size test from getSize
Removed test for header size from getSize tests.
2025-09-12 01:05:24 +05:30

27 lines
378 B
Plaintext

meta {
name: getSize
type: http
seq: 8
}
get {
url: https://www.httpfaker.org/api/random/json?size=1mb
body: none
auth: inherit
}
params:query {
size: 1mb
}
script:post-response {
console.log(res.getSize())
}
tests {
test("test total size", function() {
const sizes = res.getSize();
expect(sizes.total).to.equal(sizes.header + sizes.body);
});
}