Fix translatorType in dummy translators in tests

This commit is contained in:
Dan Stillman 2017-01-23 07:02:08 -05:00
parent 41413b1ab2
commit c6b78da69d

View file

@ -776,7 +776,7 @@ var generateTranslatorExportData = Zotero.Promise.coroutine(function* generateTr
* Build a dummy translator that can be passed to Zotero.Translate
*/
function buildDummyTranslator(translatorType, code, info={}) {
const TRANSLATOR_TYPES = {"import":1, "export":2, "web":4, "search":8};
const TRANSLATOR_TYPES = {1: "import", 2: "export", 4: "web", 8: "search"};
info = Object.assign({
"translatorID":"dummy-translator",
"translatorType":TRANSLATOR_TYPES[translatorType],