feat(#1460): use new interpolation lib in app, electron, cli

This commit is contained in:
Anoop M D
2024-01-29 17:17:24 +05:30
parent c5986896d1
commit 7ba9b839da
22 changed files with 378 additions and 239 deletions

View File

@@ -0,0 +1,47 @@
meta {
name: missing values
type: http
seq: 1
}
post {
url: {{host}}/api/echo/json?foo={{undefinedVar}}
body: json
auth: none
}
query {
foo: {{undefinedVar}}
}
auth:basic {
username: asd
password: j
}
auth:bearer {
token:
}
body:json {
{
"hello": "{{undefinedVar2}}"
}
}
assert {
res.status: eq 200
}
tests {
test("should return json", function() {
const url = req.getUrl();
expect(url).to.equal("http://localhost:80/api/echo/json?foo={{undefinedVar}}");
const data = res.getBody();
expect(res.getBody()).to.eql({
"hello": "{{undefinedVar2}}"
});
});
}