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 JavaScript Unit Testing Behavior Driven Development with Mocha & Chai Challenge: Expanding Our Expectations

Pierre Smith
Pierre Smith
11,842 Points

Browser compatibilities with JS Chai Should style framework. Why?

On the Chai site, it says this "The should style allows for the same chainable assertions as the expect interface, however it extends each object with a should property to start your chain. This style has some issues when used with Internet Explorer, so be aware of browser compatibility."

When I'm testing my application I do it through the terminal, so what does my browser have to do with the testing of my application?

2 Answers

It can be used in the browser: Installation - Chai.

If you're using it in the terminal, then nothing to worry about! :)

jason chan
jason chan
31,009 Points

your browser doesn't do anything. It's just black and white application. Pretend its terminal application.