Use a platform-appropriate path in file access error test

The hardcoded POSIX path isn't valid on Windows.
This commit is contained in:
Dan Stillman 2026-08-19 16:02:49 -04:00
parent 6ce33bcd81
commit c220866d9a

View file

@ -509,7 +509,7 @@ describe("Zotero.File", function () {
var e = {
operation: 'open',
becauseAccessDenied: true,
path: '/tmp/test'
path: PathUtils.join(Zotero.getTempDirectory().path, 'test')
};
try {
Zotero.File.checkFileAccessError(e, e.path, 'create');