From 8b7afcf24c861912de77f708dd7b025198aa7b67 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 5 Mar 2022 07:38:39 -0500 Subject: [PATCH] Fix utilities_item tests after adding Preprint in 053d6a011 Attachments and notes are now mapped to CSL `document` (though it shouldn't be possible to export attachments or notes to CSL JSON anyway) --- test/tests/utilities_itemTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests/utilities_itemTest.js b/test/tests/utilities_itemTest.js index 6e48cd5cdc..95eaf6c306 100644 --- a/test/tests/utilities_itemTest.js +++ b/test/tests/utilities_itemTest.js @@ -118,7 +118,7 @@ describe("Zotero.Utilities.Item", function() { yield note.saveTx(); let cslJSONNote = Zotero.Utilities.itemToCSLJSON(note); - assert.equal(cslJSONNote.type, 'article', 'note is exported as "article"'); + assert.equal(cslJSONNote.type, 'document', 'note is exported as "document"'); assert.equal(cslJSONNote.title, note.getNoteTitle(), 'note title is set to Zotero pseudo-title'); })); it("should convert standalone attachments to expected format", Zotero.Promise.coroutine(function* () { @@ -134,7 +134,7 @@ describe("Zotero.Utilities.Item", function() { yield attachment.saveTx(); let cslJSONAttachment = Zotero.Utilities.itemToCSLJSON(attachment); - assert.equal(cslJSONAttachment.type, 'article', 'attachment is exported as "article"'); + assert.equal(cslJSONAttachment.type, 'document', 'attachment is exported as "document"'); assert.equal(cslJSONAttachment.title, 'Empty', 'attachment title is correct'); assert.deepEqual(cslJSONAttachment.accessed, {"date-parts":[["2001",2,3]]}, 'attachment access date is mapped correctly'); }));