Skip to content

Conversation

@naufalyukafi
Copy link
Collaborator

No description provided.

Comment on lines 52 to 58
Promise.resolve([
{
_id: "gaejgea7g8hea",
name: "jatim park map",
description: "jatim park map description",
},
] as any),
Copy link
Collaborator

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

Suggested change
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 () => {
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants