Sanitize items by converting document to URL, so that tests will not fail unexpectedly in connector
This commit is contained in:
parent
84498de046
commit
0c7c40a50f
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,8 @@ Zotero_TranslatorTester._sanitizeItem = function(item) {
|
|||
if(item.attachments && item.attachments.length) {
|
||||
for (var i=0; i<item.attachments.length; i++) {
|
||||
if(item.attachments[i].document) {
|
||||
item.attachments[i].document = {};
|
||||
item.attachments[i].url = item.attachments[i].document.location.href;
|
||||
delete item.attachments[i].document;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue