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.
This commit is contained in:
Dan Stillman 2021-01-20 22:32:56 -05:00
parent 05e56acf77
commit 9e6a2d2e50

View file

@ -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/);
});
});