Scaffold: Include mimeType: text/html
for attachments in test output
The connector includes this, so the new CI translator test runner in zotero/translators was showing erroneous mismatches.
This commit is contained in:
parent
c1a06a5dea
commit
ab3a5ddbd8
1 changed files with 2 additions and 0 deletions
|
@ -256,6 +256,8 @@ Zotero_TranslatorTester._sanitizeItem = function(item, testItem, keepValidFields
|
||||||
var attachment = item.attachments[i];
|
var attachment = item.attachments[i];
|
||||||
if(attachment.document) {
|
if(attachment.document) {
|
||||||
delete attachment.document;
|
delete attachment.document;
|
||||||
|
// Mirror connector/server itemDone() behavior from translate.js
|
||||||
|
attachment.mimeType = 'text/html';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(attachment.url) {
|
if(attachment.url) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue