From 55148287233dbe89c0c5e081f7c9ad20616fb69e Mon Sep 17 00:00:00 2001 From: Sinuhe Tellez Date: Thu, 10 Jun 2021 02:55:39 -0400 Subject: [PATCH] fix unittests --- internal/service/service_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/service/service_test.go b/internal/service/service_test.go index e1dcbfc..434b8e1 100644 --- a/internal/service/service_test.go +++ b/internal/service/service_test.go @@ -24,8 +24,8 @@ func TestHandler(t *testing.T) { want string WantedContentType string }{ - "feed (dir of folders )": {input: "/", want: feed, WantedContentType: "application/xml"}, - "acquisitionFeed(dir of files)": {input: "/mybook", want: acquisitionFeed, WantedContentType: "application/xml"}, + "feed (dir of dirs )": {input: "/", want: feed, WantedContentType: "application/atom+xml;profile=opds-catalog;kind=navigation"}, + "acquisitionFeed(dir of files)": {input: "/mybook", want: acquisitionFeed, WantedContentType: "application/atom+xml;profile=opds-catalog;kind=acquisition"}, "servingAFile": {input: "/mybook/mybook.txt", want: "Fixture", WantedContentType: "text/plain; charset=utf-8"}, "serving file with spaces": {input: "/mybook/mybook%20copy.txt", want: "Fixture", WantedContentType: "text/plain; charset=utf-8"}, }