Create 'profile' and 'Zotero' directories in temp dir for tests

This commit is contained in:
Dan Stillman 2016-11-22 01:39:33 -05:00
parent fb1e87a2da
commit 288d0c7c06
3 changed files with 9 additions and 6 deletions

View file

@ -38,6 +38,8 @@ describe("Zotero Core Functions", function () {
});
beforeEach(function* () {
// Trigger a call to setDataDirectory() now to avoid affecting the stub call count
Zotero.getZoteroDirectory();
stub1 = sinon.stub(Zotero, "setDataDirectory");
});