mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +01:00
fix tests for bruno-electron & bruno-lang (#2410)
This commit is contained in:
parent
ee4dba54f3
commit
bcdbc0ebed
@ -86,7 +86,7 @@ const interpolateVars = (request, envVars = {}, collectionVariables = {}, proces
|
||||
param.value = _interpolate(param.value);
|
||||
});
|
||||
|
||||
if (request.params.length) {
|
||||
if (request?.params?.length) {
|
||||
let url = request.url;
|
||||
|
||||
if (!url.startsWith('http://') && !url.startsWith('https://')) {
|
||||
|
@ -5,17 +5,21 @@ meta {
|
||||
}
|
||||
|
||||
get {
|
||||
url: https://api.textlocal.in/send
|
||||
url: https://api.textlocal.in/send/:id
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
query {
|
||||
params:query {
|
||||
apiKey: secret
|
||||
numbers: 998877665
|
||||
~message: hello
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 123
|
||||
}
|
||||
|
||||
headers {
|
||||
content-type: application/json
|
||||
Authorization: Bearer 123
|
||||
|
@ -6,25 +6,34 @@
|
||||
},
|
||||
"http": {
|
||||
"method": "get",
|
||||
"url": "https://api.textlocal.in/send",
|
||||
"url": "https://api.textlocal.in/send/:id",
|
||||
"body": "json",
|
||||
"auth": "bearer"
|
||||
},
|
||||
"query": [
|
||||
"params": [
|
||||
{
|
||||
"name": "apiKey",
|
||||
"value": "secret",
|
||||
"type": "query",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"name": "numbers",
|
||||
"value": "998877665",
|
||||
"type": "query",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"value": "hello",
|
||||
"type": "query",
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"value": "123",
|
||||
"type": "path",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"headers": [
|
||||
|
Loading…
Reference in New Issue
Block a user