From e20aa99392b853a32425b506c3d530b16ad4dac9 Mon Sep 17 00:00:00 2001 From: Leandro Doctors Date: Wed, 20 Nov 2024 14:56:11 +0100 Subject: [PATCH] fixes to `output_test` after review --- .../rest-util/test/blaze/middleware/fhir/output_test.clj | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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