;; Copyright © 2014-2017, JUXT LTD.

(ns yada.exception-test
  (:require
   [clojure.test :refer :all]
   [yada.test :refer [response-for]]))

(deftest exception-test
  (let [resp (response-for (ex-info "Error" {} (ex-info "cause" {})))]
    (is (< 1000 (Integer/parseInt (get-in resp [:headers "content-length"])) ))))
