All posts tagged Buster.js
Recently I was working with BusterJs’s
refute.exceptionmethods 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.