Skip to content

Commit ff52b77

Browse files
committed
fix: updated tests
1 parent a4e0227 commit ff52b77

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/vaults/CommandCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CommandCreate extends CommandPolykey {
1010
constructor(...args: ConstructorParameters<typeof CommandPolykey>) {
1111
super(...args);
1212
this.name('create');
13-
this.aliases(['touch']);
13+
this.alias('touch');
1414
this.description('Create a new Vault');
1515
this.argument(
1616
'<vaultName>',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CommandDelete extends CommandPolykey {
99
constructor(...args: ConstructorParameters<typeof CommandPolykey>) {
1010
super(...args);
1111
this.name('rm');
12-
this.alias('remove')
12+
this.alias('remove');
1313
this.description('Remove an existing Vault');
1414
this.argument(
1515
'<vaultName>',

src/vaults/CommandVaults.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import CommandClone from './CommandClone';
22
import CommandCreate from './CommandCreate';
3-
import CommandDelete from './CommandDelete';
43
import CommandList from './CommandList';
54
import CommandLog from './CommandLog';
65
import CommandScan from './CommandScan';
76
import CommandPermissions from './CommandPermissions';
87
import CommandPull from './CommandPull';
8+
import CommandRemove from './CommandRemove';
99
import CommandRename from './CommandRename';
1010
import CommandShare from './CommandShare';
1111
import CommandUnshare from './CommandUnshare';
@@ -19,11 +19,11 @@ class CommandVaults extends CommandPolykey {
1919
this.description('Vaults Operations');
2020
this.addCommand(new CommandClone(...args));
2121
this.addCommand(new CommandCreate(...args));
22-
this.addCommand(new CommandDelete(...args));
2322
this.addCommand(new CommandList(...args));
2423
this.addCommand(new CommandLog(...args));
2524
this.addCommand(new CommandPermissions(...args));
2625
this.addCommand(new CommandPull(...args));
26+
this.addCommand(new CommandRemove(...args));
2727
this.addCommand(new CommandRename(...args));
2828
this.addCommand(new CommandShare(...args));
2929
this.addCommand(new CommandUnshare(...args));
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as ids from 'polykey/dist/ids';
88
import * as keysUtils from 'polykey/dist/keys/utils';
99
import * as testUtils from '../utils';
1010

11-
describe('commandDeleteVault', () => {
11+
describe('commandRemoveVault', () => {
1212
const password = 'password';
1313
const logger = new Logger('CLI Test', LogLevel.WARN, [new StreamHandler()]);
1414
let dataDir: string;
@@ -68,8 +68,8 @@ describe('commandDeleteVault', () => {
6868
});
6969
});
7070

71-
test('should delete vault', async () => {
72-
command = ['vaults', 'delete', '-np', dataDir, vaultName];
71+
test('should remove vault', async () => {
72+
command = ['vaults', 'rm', '-np', dataDir, vaultName];
7373
await polykeyAgent.vaultManager.createVault(vaultName);
7474
let id = polykeyAgent.vaultManager.getVaultId(vaultName);
7575
expect(id).toBeTruthy();

0 commit comments

Comments
 (0)