Skip to content

Commit

Permalink
fix: Update scaffold tests
Browse files Browse the repository at this point in the history
Because I extracted flag validation from the scaffold function, the corresponding unit test must call validateScaffoldFlags instead of scaffold

Signed-off-by: Thorsten Hans <[email protected]>
  • Loading branch information
ThorstenHans committed Mar 25, 2024
1 parent 120ad56 commit 932758e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/scaffold_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func TestFlagValidation(t *testing.T) {

for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
_, err := scaffold(tc.opts)
err := validateScaffoldFlags(tc.opts)

if tc.expectedError == "" {
require.Nil(t, err)
Expand Down

0 comments on commit 932758e

Please sign in to comment.