Jest test for showAlert function
Description
Write a test for showAlert in app/javascript/src/casa_case.js
see app/javascript/__tests__/case_contact.test.js for an example
ok so i went through both the codes the testing is done in jest and i understood that i need to export the const alertEl that is required for testing but what should i do in the expect part of the code.
i am a begginer and this seems to be an easy task can you assign me this
@siddharth1704 welcome! :)
@siddharth1704 to answer your question- please write a test asserting correct behavior for the code. So if the code shows an alert with data, assert that the alert is shown and the data is correct :)
@siddharth1704 I'm trying this myself and it's way harder than I thought it'd be. Let me know if you get stuck
This issue has been inactive for 262 hours (10.92 days) and will be automatically unassigned after 98 more hours (4.08 days).
This issue has been inactive for 382 hours (15.92 days) and is past the limit of 360 hours (15.00 days) so is being unassigned.
Can i work on this issue?