diff --git a/test/tests/data/mendeleyMock/annotations.json b/test/tests/data/mendeleyMock/annotations.json index db436b5fcf..0c5b518df5 100644 --- a/test/tests/data/mendeleyMock/annotations.json +++ b/test/tests/data/mendeleyMock/annotations.json @@ -128,5 +128,38 @@ "privacy_level": "private", "filehash": "cc22c6611277df346ff8dc7386ba3880b2bafa15", "document_id": "c54b0c6f-c4ce-4706-8742-bc7d032df862" + }, + { + "id": "e88bd089-2023-4544-a0bb-a21cb3990037", + "type": "sticky_note", + "color": + { + "r": 255, + "g": 222, + "b": 180 + }, + "profile_id": "8dbf0832-8723-4c48-b532-20c0b7f6e01a", + "positions": + [ + { + "top_left": + { + "x": 287.4041774203229, + "y": 662.2221955464859 + }, + "bottom_right": + { + "x": 287.4041774203229, + "y": 662.2221955464859 + }, + "page": 1 + } + ], + "text": "mismatched note", + "created": "2021-11-09T10:26:16.640Z", + "last_modified": "2021-11-09T10:26:16.640Z", + "privacy_level": "private", + "filehash": "thishashdoesntmatchanythingthishashdoesn", + "document_id": "d0e01b30-ea60-4eae-818a-34ae7cd8bfb8" } ] \ No newline at end of file diff --git a/test/tests/mendeleyImportTest.js b/test/tests/mendeleyImportTest.js index c92798f04e..dd6e9b9777 100644 --- a/test/tests/mendeleyImportTest.js +++ b/test/tests/mendeleyImportTest.js @@ -156,7 +156,7 @@ describe('Zotero_Import_Mendeley', function () { assert.lengthOf(withpdf.getAttachments(), 1); assert.equal(pdf.parentID, withpdf.id); const annotations = await pdf.getAnnotations(); - assert.lengthOf(annotations, 4); + assert.equal(annotations.length, 4); // collection const parentCollection = await Zotero.Collections.getAsync(