Fix test failure after 40fe85b274
This commit is contained in:
parent
2c6eb3d4a1
commit
806ba2eb72
1 changed files with 3 additions and 2 deletions
|
@ -161,8 +161,9 @@ describe("Advanced Preferences", function () {
|
|||
Zotero.Attachments.BASE_PATH_PLACEHOLDER + 'test.png'
|
||||
);
|
||||
|
||||
var basePath = Zotero.getTempDirectory().path;
|
||||
yield setBaseDirectory(basePath);
|
||||
// Choose a nonexistent directory for the base path
|
||||
var otherPath = OS.Path.join(OS.Path.dirname(basePath), 'foobar');
|
||||
yield setBaseDirectory(otherPath);
|
||||
|
||||
assert.equal(attachment.attachmentPath, file.path);
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue