-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration test for /yardim endpoint #87
base: main
Are you sure you want to change the base?
Conversation
totalPage: expect.any(Number), | ||
data: expect.any(Array), | ||
}); | ||
expect(responseBody.data[0]).toEqual(expect.objectContaining({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
responseBody.data[]'nin length'ini de konrol edelim
|
||
expect(response.statusCode).toBe(200); | ||
|
||
const responseBody = JSON.parse(response.body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const responseBody = JSON.parse(response.body); | |
const responseBody = await response.json() |
|
||
const responseBody = JSON.parse(response.body); | ||
|
||
expect(responseBody).toEqual({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expect(responseBody).toEqual({ | |
expect(responseBody).toDeepEqual({ |
totalPage: expect.any(Number), | ||
data: expect.any(Array), | ||
}); | ||
expect(responseBody.data[0]).toEqual(expect.objectContaining({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expect(responseBody.data[0]).toEqual(expect.objectContaining({ | |
expect(responseBody.data[0]).toDeepEqual(expect.objectContaining({ |
No description provided.