(ns emptyhead.test.utils
  (:require [cljs.test :as t :include-macros true]))

(defn expect-error [type fun]
  (t/is
   (= type
      (try (fun)
           nil
           (catch :default e
             (-> e ex-data :data first :type))))))
