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'
|
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);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue