Mendeley Import: Test skipping mismatched annotations

This commit is contained in:
Tom Najdek 2021-11-10 13:46:02 +01:00
parent f10649483e
commit 7664fedf70
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77
2 changed files with 34 additions and 1 deletions

View file

@ -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"
}
]

View file

@ -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(