Debugging for zipDirectory() test failure on Travis

This commit is contained in:
Dan Stillman 2016-06-22 06:42:30 -04:00
parent b5344119bb
commit 94e0e8b752
2 changed files with 9 additions and 0 deletions

View file

@ -71,7 +71,15 @@ describe("Zotero.File", function () {
})
describe("#zipDirectory()", function () {
afterEach(function () {
Zotero.Prefs.set('debug.log', false);
Zotero.Debug.init();
});
it("should compress a directory recursively", function* () {
Zotero.Prefs.set('debug.log', true);
Zotero.Debug.init();
var tmpPath = Zotero.getTempDirectory().path;
var path = OS.Path.join(tmpPath, Zotero.Utilities.randomString());
yield OS.File.makeDir(path);