From a897b4884f2ad14ff8a66652a1f802f8e502a7f9 Mon Sep 17 00:00:00 2001 From: James Addison Date: Fri, 1 Mar 2024 17:07:43 +0000 Subject: [PATCH] tests: fixup: terms are a mapping from strings to a list of document-ids --- tests/js/searchtools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/js/searchtools.js b/tests/js/searchtools.js index b70c2d32528..8a5b7b8c0ca 100644 --- a/tests/js/searchtools.js +++ b/tests/js/searchtools.js @@ -6,7 +6,7 @@ describe('Basic html theme search', function() { index = { docnames:["index"], filenames:["index.rst"], - terms:{'c++':0}, + terms:{'c++':[0]}, titles:["<no title>"], titleterms:{} } @@ -21,7 +21,7 @@ describe('Basic html theme search', function() { "<no title>", "", null, - 2, + 5, "index.rst" ]]; expect(Search.performTermsSearch(searchterms, excluded, terms, titleterms)).toEqual(hits);