Formatting
This commit is contained in:
@@ -30,7 +30,9 @@ describe("paths utilities", () => {
|
||||
test("returns path under config dir", () => {
|
||||
const mnemonicsDir = getMnemonicsDir();
|
||||
|
||||
expect(mnemonicsDir).toBe(path.join(homedir(), ".config", "xo-cli", "mnemonics"));
|
||||
expect(mnemonicsDir).toBe(
|
||||
path.join(homedir(), ".config", "xo-cli", "mnemonics"),
|
||||
);
|
||||
});
|
||||
|
||||
test("creates the directory if it does not exist", () => {
|
||||
@@ -58,7 +60,9 @@ describe("paths utilities", () => {
|
||||
test("returns .wallet file path under config dir", () => {
|
||||
const walletConfigPath = getWalletConfigPath();
|
||||
|
||||
expect(walletConfigPath).toBe(path.join(homedir(), ".config", "xo-cli", ".wallet"));
|
||||
expect(walletConfigPath).toBe(
|
||||
path.join(homedir(), ".config", "xo-cli", ".wallet"),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -111,9 +115,9 @@ describe("paths utilities", () => {
|
||||
});
|
||||
|
||||
test("throws when file not found anywhere", () => {
|
||||
expect(() => resolveMnemonicFilePath("nonexistent-mnemonic-file-xyz")).toThrow(
|
||||
/Mnemonic file not found/,
|
||||
);
|
||||
expect(() =>
|
||||
resolveMnemonicFilePath("nonexistent-mnemonic-file-xyz"),
|
||||
).toThrow(/Mnemonic file not found/);
|
||||
});
|
||||
|
||||
test("does not resolve absolute path if file does not exist", () => {
|
||||
|
||||
Reference in New Issue
Block a user