Skip to content

Commit 7e03a92

Browse files
committed
fix: lintfix
1 parent ee0b3e2 commit 7e03a92

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tests/secrets/rename.test.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ describe('commandRenameSecret', () => {
9494
'rename',
9595
'-np',
9696
dataDir,
97-
`${vaultName}:${oldSecretName}`, // Source secret path
98-
newSecretFullyQualified, // New secret name as fully qualified path
97+
`${vaultName}:${oldSecretName}`, // Source secret path
98+
newSecretFullyQualified, // New secret name as fully qualified path
9999
];
100100

101101
const result = await testUtils.pkStdio(command, {
@@ -119,7 +119,14 @@ describe('commandRenameSecret', () => {
119119
const vaultName = 'vaultRootTest' as VaultName; // Use a distinct vault name
120120
await polykeyAgent.vaultManager.createVault(vaultName);
121121
// Attempting to rename the vault itself, or an empty path within it
122-
command = ['secrets', 'rename', '-np', dataDir, `${vaultName}:/`, 'newNameForRoot'];
122+
command = [
123+
'secrets',
124+
'rename',
125+
'-np',
126+
dataDir,
127+
`${vaultName}:/`,
128+
'newNameForRoot',
129+
];
123130
let result = await testUtils.pkStdio(command, {
124131
env: { PK_PASSWORD: password },
125132
cwd: dataDir,
@@ -137,4 +144,4 @@ describe('commandRenameSecret', () => {
137144
expect(result.exitCode).not.toBe(0);
138145
expect(result.stderr).toInclude('EPERM'); // This is because secretPath[1] will be undefined
139146
});
140-
});
147+
});

0 commit comments

Comments
 (0)