Enable debugging for Travis error
This commit is contained in:
parent
aeaa0d12c7
commit
249521f12b
1 changed files with 4 additions and 1 deletions
|
@ -136,6 +136,7 @@ describe("Zotero Core Functions", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should show error on partial failure", function* () {
|
it("should show error on partial failure", function* () {
|
||||||
|
Zotero.Debug.init(true);
|
||||||
yield populateDataDirectory(oldDir);
|
yield populateDataDirectory(oldDir);
|
||||||
|
|
||||||
let origFunc = OS.File.move;
|
let origFunc = OS.File.move;
|
||||||
|
@ -149,10 +150,12 @@ describe("Zotero Core Functions", function () {
|
||||||
});
|
});
|
||||||
let stub4 = sinon.stub(Zotero.File, "reveal").returns(Zotero.Promise.resolve());
|
let stub4 = sinon.stub(Zotero.File, "reveal").returns(Zotero.Promise.resolve());
|
||||||
let stub5 = sinon.stub(Zotero.Utilities.Internal, "quitZotero");
|
let stub5 = sinon.stub(Zotero.Utilities.Internal, "quitZotero");
|
||||||
|
|
||||||
var promise = waitForDialog();
|
var promise = waitForDialog();
|
||||||
yield Zotero.checkForDataDirectoryMigration(oldDir, newDir);
|
yield Zotero.checkForDataDirectoryMigration(oldDir, newDir);
|
||||||
|
Zotero.debug("Waiting for dialog");
|
||||||
yield promise;
|
yield promise;
|
||||||
|
Zotero.debug("Done waiting for dialog");
|
||||||
|
|
||||||
assert.isTrue(stub4.calledTwice);
|
assert.isTrue(stub4.calledTwice);
|
||||||
assert.isTrue(stub4.getCall(0).calledWith(oldStorageDir));
|
assert.isTrue(stub4.getCall(0).calledWith(oldStorageDir));
|
||||||
|
|
Loading…
Add table
Reference in a new issue