O'Reilly logo

Instant typeahead.js by Toby Osbourn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing the typeahead.js codebase (Become an expert)

While it would be amazing if we could trust that all the code we use will work 100 percent of the time, unfortunately that just isn't the case, and it is good practice to put any code you are going to be using for business critical features through its paces.

It is also imperative that you know how to run the test suite in case you ever want to fix or change something in typeahead and contribute it back to the community.

Getting ready

typeahead's test suite runs in Jasmine, which is a popular JavaScript behavior-driven testing framework. An easy way to run Jasmine, and also the recommended way according to the typeahead developers, is via Grunt, a popular JavaScript task runner, so we will install ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required