All posts tagged Assert

  • Getting Started With Buster.js

    Buster.js is a unit testing framework for JavaScript applications. With it, you can write web applications using the Test Driven Development method which in turn leads to code that is easier to change and maintain.

    Read more

  • How to Pass in Parameters to BusterJs assert.exception and refute.exception

    Recently I was working with BusterJs’s assert.exception and refute.exception methods and ran into an issue with their documentation. In their example docs for those methods, they show how you can pass in an object literal that either does or does not throw an exception (depending on which method you’re using). This helpful in getting started, but I thought I’d chime in and give an example on how to use these methods if you’re writing unit tests for an API or library.