mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-16 04:11:29 +00:00
Enhance BrunoResponse with statusText functionality: - Added `getStatusText()` method to BrunoResponse class - Updated QuickJS shim to support statusText
24 lines
307 B
Plaintext
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');
|
|
});
|
|
}
|