-
Notifications
You must be signed in to change notification settings - Fork 0
Add unit testing for project list component #20
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
base: master
Are you sure you want to change the base?
Conversation
| Promise.resolve([ | ||
| { | ||
| _id: "gaejgea7g8hea", | ||
| name: "jatim park map", | ||
| description: "jatim park map description", | ||
| }, | ||
| ] as any), |
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.
response dari delete project ini harusnya object project. Bukan array of project
| Promise.resolve([ | |
| { | |
| _id: "gaejgea7g8hea", | |
| name: "jatim park map", | |
| description: "jatim park map description", | |
| }, | |
| ] as any), | |
| Promise.resolve({ | |
| _id: "gaejgea7g8hea", | |
| name: "jatim park map", | |
| description: "jatim park map description", | |
| } as any), |
| expect(cardDescription).toBeInTheDocument(); | ||
| }); | ||
|
|
||
| it("can show succes notification if delete confirm accepted", async () => { |
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.
coba tambahin satu case lagi ya, yang can show failed notification if delete failed
cara mock nya bisa kamu lihat di https://github.com/indent-dev/blueprint/blob/master/src/modules/LoggedIn/Project/ProjectForm.test.tsx#L94-L104
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.
mas mau nanya ini saya udah nambahin casenya tapi gagal soalnya findByTitle itu berlaku untuk satu case aja mas. terus saya rubah ke findAllByTitle dia gak mau juga mas.
No description provided.