mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-26 15:48:44 +01:00
19 lines
270 B
Plaintext
19 lines
270 B
Plaintext
|
meta {
|
||
|
name: getVar
|
||
|
type: http
|
||
|
seq: 5
|
||
|
}
|
||
|
|
||
|
get {
|
||
|
url: {{host}}/ping
|
||
|
body: none
|
||
|
auth: none
|
||
|
}
|
||
|
|
||
|
|
||
|
tests {
|
||
|
test("should get var in scripts", function() {
|
||
|
const testSetVar = bru.getVar("testSetVar");
|
||
|
expect(testSetVar).to.equal("bruno-test-87267");
|
||
|
});
|
||
|
}
|