From dc0be9c13c367d0e477b19185293c7e8c2a2bd58 Mon Sep 17 00:00:00 2001 From: Marielle Volz Date: Mon, 26 Feb 2024 11:42:44 +0000 Subject: [PATCH] Update submodules and fix tests (#164) Update all submodules. Fix two failing tests that are no longer compatible with the translators submodule: * LOC translator upstream now uses https * Hand actual ISBN instead of var name to LoC translator --- modules/translate | 2 +- modules/translators | 2 +- modules/utilities | 2 +- modules/zotero-schema | 2 +- test/search_test.js | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/translate b/modules/translate index fcb7b8a..e0fe482 160000 --- a/modules/translate +++ b/modules/translate @@ -1 +1 @@ -Subproject commit fcb7b8ae9500be2c7c29e4306400f82fe21c5656 +Subproject commit e0fe482b8a07e42cbf83545947382008ae7ddb82 diff --git a/modules/translators b/modules/translators index a55c0fe..7837c42 160000 --- a/modules/translators +++ b/modules/translators @@ -1 +1 @@ -Subproject commit a55c0fecbd2259956c7fff34f347116479e52b0a +Subproject commit 7837c4267095812c345c4ea86a3691b10ba07063 diff --git a/modules/utilities b/modules/utilities index b93f16d..9c89b23 160000 --- a/modules/utilities +++ b/modules/utilities @@ -1 +1 @@ -Subproject commit b93f16dba483891c0ab4627cbaa303de5c7fa0c0 +Subproject commit 9c89b23153ce621ed0f1d581a5e32248704c6fb7 diff --git a/modules/zotero-schema b/modules/zotero-schema index 46feab5..1f5331e 160000 --- a/modules/zotero-schema +++ b/modules/zotero-schema @@ -1 +1 @@ -Subproject commit 46feab5ce7eed164fe56127428f5ffb25a02cf0f +Subproject commit 1f5331e902ed2b765a379b9586c65d1a192c151d diff --git a/test/search_test.js b/test/search_test.js index 621ab0e..ac9825a 100644 --- a/test/search_test.js +++ b/test/search_test.js @@ -34,7 +34,7 @@ describe("/search", function () { } // Mock Library of Congress ISBN lookup - if (url.startsWith('http://lx2.loc.gov')) { + if (url.startsWith('https://lx2.loc.gov')) { var xml = fs.readFileSync( path.join(__dirname, 'data', 'loc_book1_response.xml'), { @@ -68,7 +68,7 @@ describe("/search", function () { var origQueryLambda = TextSearch.queryLambda.bind(TextSearch); sinon.stub(TextSearch, 'queryLambda').callsFake(function (query) { if (query == bookTitle1.toLowerCase()) { - return Promise.resolve([{"ISBN":"${bookISBN1}"}]); + return Promise.resolve([{"ISBN":bookISBN1}]); } return origQueryLambda(query); });