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:
Pragadesh-45 2024-11-20 03:29:27 +05:30 committed by GitHub
parent ad5b625655
commit 41040bc296
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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");
}); });
} }

View File

@ -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);