fix(commands): update command service tests to reflect new command

- Updates the tests for the command service to account for the new copy command.
This commit is contained in:
Taylor Mullen
2025-07-14 23:14:25 -07:00
parent 12b4bd7693
commit 7549046f33

View File

@@ -62,7 +62,7 @@ describe('CommandService', () => {
const tree = commandService.getCommands();
// Post-condition assertions
expect(tree.length).toBe(6);
expect(tree.length).toBe(7);
const commandNames = tree.map((cmd) => cmd.name);
expect(commandNames).toContain('auth');
@@ -77,14 +77,14 @@ describe('CommandService', () => {
it('should overwrite any existing commands when called again', async () => {
// Load once
await commandService.loadCommands();
expect(commandService.getCommands().length).toBe(6);
expect(commandService.getCommands().length).toBe(7);
// Load again
await commandService.loadCommands();
const tree = commandService.getCommands();
// Should not append, but overwrite
expect(tree.length).toBe(6);
expect(tree.length).toBe(7);
});
});
@@ -96,7 +96,7 @@ describe('CommandService', () => {
await commandService.loadCommands();
const loadedTree = commandService.getCommands();
expect(loadedTree.length).toBe(6);
expect(loadedTree.length).toBe(7);
expect(loadedTree).toEqual([
authCommand,
clearCommand,