Reduce startup time from retraction key caching
This commit is contained in:
parent
693cd926d5
commit
cae2aab70f
2 changed files with 78 additions and 50 deletions
|
@ -258,6 +258,17 @@ describe("Retractions", function() {
|
|||
var indexes = await Zotero.Retractions.getRetractionsFromJSON(json);
|
||||
assert.sameMembers(indexes, [0]);
|
||||
});
|
||||
|
||||
it("should identify object with retracted DOI on subsequent line in Extra", async function () {
|
||||
var json = [
|
||||
{
|
||||
extra: `Foo: Bar\nDOI: ${retractedDOI}`
|
||||
}
|
||||
];
|
||||
|
||||
var indexes = await Zotero.Retractions.getRetractionsFromJSON(json);
|
||||
assert.sameMembers(indexes, [0]);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue