mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 16:44:27 +01:00
chore: fix cli tests (#2412)
* fix tests for bruno-electron & bruno-lang * chore: fix validatioon breaking cli tests
This commit is contained in:
parent
811a6e6034
commit
f9b33dde38
@ -66,7 +66,7 @@ const interpolateVars = (request, envVars = {}, collectionVariables = {}, proces
|
||||
}
|
||||
|
||||
if (typeof request.data === 'string') {
|
||||
if (request.data.length) {
|
||||
if (request?.data?.length) {
|
||||
request.data = _interpolate(request.data);
|
||||
}
|
||||
}
|
||||
@ -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://')) {
|
||||
|
Loading…
Reference in New Issue
Block a user