Use zotero/translate and zotero/utilities for shared code
This commit is contained in:
parent
c929055571
commit
7814efcfe2
19 changed files with 337 additions and 527 deletions
|
@ -57,7 +57,7 @@ describe("Connector Server", function () {
|
|||
);
|
||||
|
||||
assert.isTrue(Zotero.Translators.get.calledWith('dummy-translator'));
|
||||
let translatorCode = yield translator.getCode();
|
||||
let translatorCode = yield Zotero.Translators.getCodeForTranslator(translator);
|
||||
assert.equal(response.response, translatorCode);
|
||||
|
||||
Zotero.Translators.get.restore();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue