Files
bruno/packages/bruno-tests/collection/scripting/api/res/getStatusText.bru
Pragadesh-45 2385c4d5c1 feat: add statusText support to BrunoResponse on safe mode
Enhance BrunoResponse with statusText functionality:
- Added `getStatusText()` method to BrunoResponse class
- Updated QuickJS shim to support statusText
2025-03-13 01:37:10 +05:30

24 lines
307 B
Plaintext

meta {
name: getStatusText
type: http
seq: 6
}
get {
url: {{host}}/ping
body: none
auth: none
}
assert {
res.statusText: eq OK
res.body: eq pong
}
tests {
test("res.getStatusText()", function() {
const statusText = res.getStatusText()
expect(statusText).to.equal('OK');
});
}