Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

ExpectThat

ExpectThat is an assertion library that can be helpful when testing LiveScript, CoffeeScript, and/or JavaScript. The syntax of ExpectThat is heavily influenced by FsUnit and as such I have chosen to include it in this appendix. As with FsUnit, there are several flavors of ExpectThat that correspond to your favorite JavaScript testing framework. Currently, options include support for QUnit, Jasmine, Mocha, and Pavlov. ExpectThat also works in both the browser and Node.js. You can find the source for ExpectThat as well as several examples here.

The easiest way to get started with ExpectThat in Visual Studio is to do the following:

  1. Install the Mindscape Web Workbench (available on Visual Studio Gallery).


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint