diff --git a/modules/rest-util/test/blaze/middleware/fhir/output_test.clj b/modules/rest-util/test/blaze/middleware/fhir/output_test.clj index 6ea7a2bbd..35504041d 100644 --- a/modules/rest-util/test/blaze/middleware/fhir/output_test.clj +++ b/modules/rest-util/test/blaze/middleware/fhir/output_test.clj @@ -32,7 +32,7 @@ (defn- binary-resource-handler-200 "A handler which uses the binary middleware and returns a binary resource." - [{:keys [content-type data] :as _body}] + [{:keys [content-type data]}] (wrap-binary-output (fn [_ respond _] (respond @@ -166,8 +166,7 @@ [:body parse-xml :issue 0 :diagnostics] := "Invalid white space character (0x1e) in text to output (in xml 1.1, could output as a character entity)"))) (deftest binary-resource-test - - (testing "possible accept headers" + (testing "returning the resource" (testing "JSON" (given (call (binary-resource-handler-200 {:content-type "text/plain" :data "MTA1NjE0Cg=="}) {:headers {"accept" "application/fhir+json"}}) :status := 200 @@ -184,7 +183,7 @@ :contentType #fhir/code"text/plain" :data #fhir/base64Binary"MTA1NjE0Cg=="}))) - (testing "with data" + (testing "returning the data" (testing "with content type" (given (call (binary-resource-handler-200 {:content-type "text/plain" :data "MTA1NjE0Cg=="}) {:headers {"accept" "text/plain"}}) :status := 200