Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
raulb committed Dec 19, 2024
1 parent 3416f64 commit d6db868
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ecdysis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,9 @@ type BehavioralTestCommand interface {

func TestBuildCobraCommand_Behavioral(t *testing.T) {
ctx := context.Background()
cobraCmd := &cobra.Command{}
ctx = context.WithValue(ctx, CobraCtxCmd{}, cobraCmd)

ctrl := gomock.NewController(t)

cmd := NewMockBehavioralTestCommand(ctrl)
ctx = context.WithValue(ctx, CobraCtxCmd{}, cmd)

wantLogger := slog.New(slog.NewTextHandler(nil, nil))
ecdysis := New(WithDecorators(CommandWithLoggerDecorator{Logger: wantLogger}))
Expand Down

0 comments on commit d6db868

Please sign in to comment.