mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 21:13:32 +00:00
xo: Fix unicorn/prevent-abbreviations.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user