mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-16 04:11:29 +00:00
added res url api hint words, updated test (#5234)
This commit is contained in:
@@ -37,6 +37,7 @@ const STATIC_API_HINTS = {
|
||||
'res.headers',
|
||||
'res.body',
|
||||
'res.responseTime',
|
||||
'res.url',
|
||||
'res.getStatus()',
|
||||
'res.getStatusText()',
|
||||
'res.getHeader(name)',
|
||||
@@ -48,6 +49,7 @@ const STATIC_API_HINTS = {
|
||||
'res.getSize().header',
|
||||
'res.getSize().body',
|
||||
'res.getSize().total',
|
||||
'res.getUrl()'
|
||||
],
|
||||
bru: [
|
||||
'bru',
|
||||
|
||||
@@ -16,6 +16,10 @@ assert {
|
||||
}
|
||||
|
||||
tests {
|
||||
test("res.url", function() {
|
||||
expect(res.url).to.equal("https://testbench-sanity.usebruno.com/ping");
|
||||
});
|
||||
|
||||
test("res.getUrl()", function() {
|
||||
const url = res.getUrl();
|
||||
expect(url).to.equal("https://testbench-sanity.usebruno.com/ping");
|
||||
|
||||
Reference in New Issue
Block a user