commit fa859b45fe5bb3556da8718c95760e92d1be87c3
parent 66f6ce715b085def17e90f39f55859b332472931
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 28 Nov 2016 19:26:39 -0500
Fix running of syncLocal tests
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/tests/syncLocalTest.js b/test/tests/syncLocalTest.js
@@ -22,9 +22,10 @@ describe("Zotero.Sync.Data.Local", function() {
describe("#checkUser()", function () {
- var resetDataDirFile = OS.Path.join(Zotero.DataDirectory.dir, 'reset-data-directory');
+ var resetDataDirFile;
before(function() {
+ resetDataDirFile = OS.Path.join(Zotero.DataDirectory.dir, 'reset-data-directory');
sinon.stub(Zotero.Utilities.Internal, 'quitZotero');
});