Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

How do i run an automated test ensure that text is displayed when a button is clicked using javascript

I want to run unit testing on a simple app with a button.

1 Answer

rydavim
rydavim
18,814 Points

It would be helpful if you take a workspace snapshot or post your code using markdown.

Based on your description though, it may be best to do this with simple console.log statements. For something basic, I don't think a testing suite is necessary.