fx115: Restore test runner

This commit is contained in:
Dan Stillman 2023-12-04 03:29:51 -05:00
parent d026d9684f
commit 33db3c28fc
4 changed files with 23 additions and 29 deletions

View file

@ -1,3 +1,5 @@
var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs");
chai.use(chaiAsPromised);
// Useful "constants"
@ -630,7 +632,6 @@ function getTestDataUrl(path) {
* Returns an absolute path to an empty temporary directory
*/
var getTempDirectory = Zotero.Promise.coroutine(function* getTempDirectory() {
Components.utils.import("resource://gre/modules/osfile.jsm");
let path,
attempts = 3,
zoteroTmpDirPath = Zotero.getTempDirectory().path;