From faf3b94b64b805d9b41721129b5ad49b6d816197 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 10 Dec 2015 20:32:42 -0500 Subject: [PATCH] Clear existing DB user values when reinitializing Users for tests --- chrome/content/zotero/xpcom/users.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/content/zotero/xpcom/users.js b/chrome/content/zotero/xpcom/users.js index d9293f52d..8eda0c91f 100644 --- a/chrome/content/zotero/xpcom/users.js +++ b/chrome/content/zotero/xpcom/users.js @@ -43,6 +43,12 @@ Zotero.Users = new function () { _libraryID = settings.libraryID; _username = settings.username; } + // Clear old values when reinitializing for tests + else { + _userID = undefined; + _libraryID = undefined; + _username = undefined; + } if (settings.localUserKey) { _localUserKey = settings.localUserKey;