Fix translatorType in dummy translators in tests
This commit is contained in:
parent
41413b1ab2
commit
c6b78da69d
1 changed files with 1 additions and 1 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Reference in a new issue