Skip to content

Commit 9228eaa

Browse files
committed
test: fix cli delete spec
1 parent 065b772 commit 9228eaa

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

branchd.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
"servers": [
33
{
44
"ip": "18.188.232.134",
5-
"alias": "production"
6-
},
7-
{
8-
"ip": "18.229.145.204",
9-
"alias": "server-2"
5+
"alias": "testing server"
106
}
117
]
12-
}
8+
}

internal/cli/commands/delete_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ func TestDeleteCommand_CommandStructure(t *testing.T) {
4545
t.Errorf("expected Use to be 'delete <branch-name>', got %s", cmd.Use)
4646
}
4747

48-
if cmd.Short != "Delete a database branch" {
49-
t.Errorf("expected Short to be 'Delete a database branch', got %s", cmd.Short)
50-
}
51-
52-
// Test that command requires exactly 1 argument
5348
err := cmd.Args(cmd, []string{})
5449
if err == nil {
5550
t.Error("expected error when no arguments provided, got nil")

0 commit comments

Comments
 (0)