mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-10 16:08:40 +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>
23 lines
357 B
Plaintext
23 lines
357 B
Plaintext
meta {
|
|
name: setEnvVar
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/ping
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
|
|
script:post-response {
|
|
bru.setEnvVar("testSetEnvVar", "bruno-29653")
|
|
}
|
|
|
|
tests {
|
|
test("should set env var in scripts", function() {
|
|
const testSetEnvVar = bru.getEnvVar("testSetEnvVar")
|
|
expect(testSetEnvVar).to.equal("bruno-29653");
|
|
});
|
|
} |