mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-27 18:33:07 +01:00
fix: update image URL and adjust tests for age variable in bruno.bru files (#3483)
Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
This commit is contained in:
parent
ad5b625655
commit
41040bc296
@ -5,7 +5,7 @@ meta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
url: https://gloutnikov.com/post/2024/bruno.png
|
url: https://www.usebruno.com/favicon.ico
|
||||||
body: none
|
body: none
|
||||||
auth: none
|
auth: none
|
||||||
}
|
}
|
||||||
@ -13,7 +13,7 @@ get {
|
|||||||
tests {
|
tests {
|
||||||
test("should return parsed xml", function() {
|
test("should return parsed xml", function() {
|
||||||
const headers = res.getHeaders();
|
const headers = res.getHeaders();
|
||||||
expect(headers['content-type']).to.eql("image/png");
|
expect(headers['content-type']).to.eql("image/x-icon");
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ assert {
|
|||||||
script:pre-request {
|
script:pre-request {
|
||||||
bru.setVar("rUser", {
|
bru.setVar("rUser", {
|
||||||
full_name: 'Bruno',
|
full_name: 'Bruno',
|
||||||
age: 4,
|
age: 5,
|
||||||
'fav-food': ['egg', 'meat'],
|
'fav-food': ['egg', 'meat'],
|
||||||
'want.attention': true
|
'want.attention': true
|
||||||
});
|
});
|
||||||
@ -49,7 +49,7 @@ script:pre-request {
|
|||||||
tests {
|
tests {
|
||||||
test("should return json", function() {
|
test("should return json", function() {
|
||||||
const expectedResponse = `Hi, I am Bruno,
|
const expectedResponse = `Hi, I am Bruno,
|
||||||
I am 4 years old.
|
I am 5 years old.
|
||||||
My favorite food is egg and meat.
|
My favorite food is egg and meat.
|
||||||
I like attention: true`;
|
I like attention: true`;
|
||||||
expect(res.getBody()).to.equal(expectedResponse);
|
expect(res.getBody()).to.equal(expectedResponse);
|
||||||
|
Loading…
Reference in New Issue
Block a user