xo: Fix unicorn/prevent-abbreviations.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-03-22 15:52:29 -07:00
parent 86e28f5b00
commit 47366b7617
37 changed files with 425 additions and 383 deletions

View File

@@ -10,7 +10,7 @@ const testsPkg = require("./package.json");
module.exports = {
createApp,
endTest,
resetTestDataDir,
resetTestDataDir: resetTestDataDirectory,
};
// Runs Zulip Desktop.
@@ -26,7 +26,7 @@ async function endTest(app) {
await app.close();
}
function getAppDataDir() {
function getAppDataDirectory() {
let base;
switch (process.platform) {
@@ -56,7 +56,7 @@ function getAppDataDir() {
}
// Resets the test directory, containing domain.json, window-state.json, etc
function resetTestDataDir() {
const appDataDir = getAppDataDir();
rimraf.sync(appDataDir);
function resetTestDataDirectory() {
const appDataDirectory = getAppDataDirectory();
rimraf.sync(appDataDirectory);
}