javascript - Testing selector presence in Jasmine -
Do anyone know how I can test it in Jasmine?
function gameWon) {$ ('#final_message_cpu'). Html ('you von !!!') $ ('. Computer_selection'). CSS ('display', 'block'); Deleting $ ('# Show_after_starting'). $ ('# Hide_after_starting') CSS ('display', 'inline') $ ('# hide_after_starting'). Click (function () {location.reload ();}}}
What is the only way I can test to see if $ ('# show_after_starting') is deleted has given?
Yes:
expected ($ ('# show_after_starting') Length). TBE (0);
Comments
Post a Comment