From 9913f748e20b93b88ec879a4a003fc71912a19e6 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Thu, 4 Mar 2021 21:15:06 +0400 Subject: [PATCH] LibraryServerTest.catalog_searchdescription_xml --- test/server.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/server.cpp b/test/server.cpp index bb963b7b2..9c4d73075 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -650,3 +650,21 @@ TEST_F(LibraryServerTest, catalog_root_xml) "\n" ); } + +TEST_F(LibraryServerTest, catalog_searchdescription_xml) +{ + const auto r = zfs1_->GET("/catalog/searchdescription.xml"); + EXPECT_EQ(r->status, 200); + EXPECT_EQ(r->body, + "\n" + "\n" + " Zim catalog search\n" + " Search zim files in the catalog.\n" + " \n" + "\n" + ); +}