From fa859b45fe5bb3556da8718c95760e92d1be87c3 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 28 Nov 2016 19:26:39 -0500 Subject: [PATCH] Fix running of syncLocal tests --- test/tests/syncLocalTest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/tests/syncLocalTest.js b/test/tests/syncLocalTest.js index 247072927..598ca747f 100644 --- 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'); });