Portable Clojure/ClojureScript exception assertions

I found it not convenient to use (is (thrown-with-msg? …)) form in .cljc unit tests. Because codebase usually depends on different exception classes depending on host’s language.

So I used these macros instead:

Advertisements

One thought on “Portable Clojure/ClojureScript exception assertions

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s