Open
Conversation
DunaevDS
commented
Oct 5, 2023
postman/sprint.json
Outdated
| "response": [] | ||
| }, | ||
| { | ||
| "name": "Item 6 get by user 4 (owner) without comments", |
Collaborator
Author
There was a problem hiding this comment.
В описании теста Id вещи и Id владельца перепутаны
Collaborator
There was a problem hiding this comment.
Если приглядеться, там очень многое сделано копипастом, в js тестах одни и те же сообщения, а проверяют совершенно другое, взять например Item 2 get by user 4 (owner) with bookings, поэтому если кто-то отреагирует - я удивлюсь
pm.test("Test item 'nextBooking.id' field", function () {
var jsonData = pm.response.json();
pm.expect(jsonData).to.have.property('nextBooking');
pm.expect(jsonData.nextBooking).to.have.property('id');
pm.expect(jsonData.nextBooking.id, '"nextBooking.id" must be "1"').to.eql(4);
});
pm.test("Test item 'nextBooking.bookerId' field", function () {
var jsonData = pm.response.json();
pm.expect(jsonData).to.have.property('nextBooking');
pm.expect(jsonData.nextBooking).to.have.property('bookerId');
pm.expect(jsonData.nextBooking.bookerId, '"nextBooking.bookerId" must be "1"').to.eql(5);
});d3e322e to
aea3842
Compare
aea3842 to
9700c92
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.