chaijs / chaijs.github.io

The chaijs.com website source code. Contributions welcome.
http://chaijs.github.io
49 stars 71 forks source link

Expose a chai global for use in the console #125

Closed not-an-aardvark closed 8 years ago

not-an-aardvark commented 8 years ago

This exposes the chai global on every page of the site, allowing people to test things in the dev console.

Being able to easily test a feature while reading its documentation can be very handy, and a few other documentation sites also expose globals for this purpose. (lodash.com exposes a _ global, bluebirdjs.com exposes a Promise global, etc.)

keithamus commented 8 years ago

Great work 😄