Fix broken test after ec76575645

This commit is contained in:
Dan Stillman 2018-08-19 04:31:40 -04:00
parent 4f98ad9567
commit d5e7bae254

View file

@ -194,12 +194,12 @@ describe("ZoteroPane", function() {
); );
// Disable loadURI() so viewAttachment() doesn't trigger translator loading // Disable loadURI() so viewAttachment() doesn't trigger translator loading
var stub = sinon.stub(zp, "loadURI"); var stub = sinon.stub(Zotero, "launchFile");
await zp.viewAttachment(item.id); await zp.viewAttachment(item.id);
assert.ok(stub.calledOnce); assert.ok(stub.calledOnce);
assert.ok(stub.calledWith(OS.Path.toFileURI(item.getFilePath()))); assert.ok(stub.calledWith(item.getFilePath()));
stub.restore(); stub.restore();
assert.equal(await item.attachmentHash, md5); assert.equal(await item.attachmentHash, md5);