06.07.2017 Views

Mastering JavaScript

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Testing and Debugging<br />

We will use Jasmine as the primary BDD framework and explore various testing<br />

strategies.<br />

You can install Jasmine by downloading the standalone package from<br />

https://github.com/jasmine/jasmine/releases/download/<br />

v2.3.4/jasmine-standalone-2.3.4.zip.<br />

When you unzip this package, you will have the following directory structure:<br />

The lib directory contains the <strong>JavaScript</strong> files that you need in your project to start<br />

writing Jasmine test cases. If you open SpecRunner.html, you will find the following<br />

<strong>JavaScript</strong> files included in it:<br />

<br />

<br />

<br />

<br />

<br />

[ 148 ]<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!