Miscellaneous tweaks

This commit is contained in:
Dan Stillman 2015-11-12 02:48:41 -05:00
parent 614232754a
commit ae277391b6
6 changed files with 8 additions and 20 deletions

View file

@ -9,9 +9,7 @@ describe("Zotero.Sync.Data.Engine", function () {
var responses = {};
var setup = Zotero.Promise.coroutine(function* (options) {
options = options || {};
var setup = Zotero.Promise.coroutine(function* (options = {}) {
server = sinon.fakeServer.create();
server.autoRespond = true;
@ -20,7 +18,6 @@ describe("Zotero.Sync.Data.Engine", function () {
caller.setLogger(msg => Zotero.debug(msg));
caller.stopOnError = true;
Components.utils.import("resource://zotero/config.js");
var client = new Zotero.Sync.APIClient({
baseURL,
apiVersion: options.apiVersion || ZOTERO_CONFIG.API_VERSION,