mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-23 16:33:30 +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 {
|
||||
url: https://gloutnikov.com/post/2024/bruno.png
|
||||
url: https://www.usebruno.com/favicon.ico
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
@ -13,7 +13,7 @@ get {
|
||||
tests {
|
||||
test("should return parsed xml", function() {
|
||||
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 {
|
||||
bru.setVar("rUser", {
|
||||
full_name: 'Bruno',
|
||||
age: 4,
|
||||
age: 5,
|
||||
'fav-food': ['egg', 'meat'],
|
||||
'want.attention': true
|
||||
});
|
||||
@ -49,7 +49,7 @@ script:pre-request {
|
||||
tests {
|
||||
test("should return json", function() {
|
||||
const expectedResponse = `Hi, I am Bruno,
|
||||
I am 4 years old.
|
||||
I am 5 years old.
|
||||
My favorite food is egg and meat.
|
||||
I like attention: true`;
|
||||
expect(res.getBody()).to.equal(expectedResponse);
|
||||
|
Loading…
Reference in New Issue
Block a user