Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,008 Points

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