Files
bruno/packages/bruno-tests/collection/scripting/api/bru/getEnvVar.bru
2024-08-12 12:28:41 +05:30

19 lines
282 B
Plaintext

meta {
name: getEnvVar
type: http
seq: 2
}
get {
url: {{host}}/ping
body: none
auth: none
}
tests {
test("should get env var in scripts", function() {
const host = bru.getEnvVar("host")
expect(host).to.equal("https://testbench-sanity.usebruno.com");
});
}