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.