From ab3a5ddbd880bffeaa1b8afd8f65069967b6564c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 16 Jul 2020 12:53:18 -0400 Subject: [PATCH] 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. --- chrome/content/zotero/tools/testTranslators/translatorTester.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index cf19c10308..7520812640 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -256,6 +256,8 @@ Zotero_TranslatorTester._sanitizeItem = function(item, testItem, keepValidFields var attachment = item.attachments[i]; if(attachment.document) { delete attachment.document; + // Mirror connector/server itemDone() behavior from translate.js + attachment.mimeType = 'text/html'; } if(attachment.url) {