mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-06 05:59:04 +01:00
753a576c3c
Safe Mode Sandbox using QuickJS Co-authored-by: Anoop M D <anoop.md1421@gmail.com> Co-authored-by: lohit <lohit.jiddimani@gmail.com>
19 lines
282 B
Plaintext
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");
|
|
});
|
|
} |