Fix test failure after 40fe85b274

This commit is contained in:
Dan Stillman 2020-04-29 16:29:22 -04:00
parent 2c6eb3d4a1
commit 806ba2eb72

View file

@ -161,8 +161,9 @@ describe("Advanced Preferences", function () {
Zotero.Attachments.BASE_PATH_PLACEHOLDER + 'test.png' Zotero.Attachments.BASE_PATH_PLACEHOLDER + 'test.png'
); );
var basePath = Zotero.getTempDirectory().path; // Choose a nonexistent directory for the base path
yield setBaseDirectory(basePath); var otherPath = OS.Path.join(OS.Path.dirname(basePath), 'foobar');
yield setBaseDirectory(otherPath);
assert.equal(attachment.attachmentPath, file.path); assert.equal(attachment.attachmentPath, file.path);
}) })