From 9e6a2d2e50b5a0aed807930db30785348bbbcebf Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 20 Jan 2021 22:32:56 -0500 Subject: [PATCH] Fix title mismatch for ISBN lookup tests Not sure what this was using before (LOC isn't currently returning a result), but GBV doesn't currently have a serial comma in the title. --- test/tests/lookupTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests/lookupTest.js b/test/tests/lookupTest.js index fd9f170d0a..00ded97397 100644 --- a/test/tests/lookupTest.js +++ b/test/tests/lookupTest.js @@ -29,7 +29,7 @@ describe("Add Item by Identifier", function() { this.timeout(20000); return lookupIdentifier(win, "0838985890").then(function(ids) { var item = Zotero.Items.get(ids[0]); - assert.equal(item.getField("title"), "Zotero: a guide for librarians, researchers, and educators"); + assert.match(item.getField("title"), /^Zotero: a guide for librarians, researchers/); }); }); @@ -37,7 +37,7 @@ describe("Add Item by Identifier", function() { this.timeout(20000); return lookupIdentifier(win, "978-0838985892").then(function(ids) { var item = Zotero.Items.get(ids[0]); - assert.equal(item.getField("title"), "Zotero: a guide for librarians, researchers, and educators"); + assert.match(item.getField("title"), /^Zotero: a guide for librarians, researchers/); }); });