Skip to content

Commit

Permalink
updated the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidya2606 committed Mar 26, 2024
1 parent 3125205 commit 9a17115
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/setup-gh_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmd

import (
"context"
"testing"

"github.com/stretchr/testify/assert"
Expand All @@ -10,6 +11,7 @@ import (
)

func TestSetUpConfig(t *testing.T) {
ctx := context.Background()
mockSetUpCmd := &providers.SetUpCmd{}
mockSetUpCmd.AppName = "testingSetUpCommand"
mockSetUpCmd.Provider = "Google"
Expand All @@ -20,7 +22,7 @@ func TestSetUpConfig(t *testing.T) {

fillSetUpConfig(mockSetUpCmd)

err := runProviderSetUp(mockSetUpCmd, s)
err := runProviderSetUp(ctx, mockSetUpCmd, s)

assert.True(t, err == nil)
}
}

0 comments on commit 9a17115

Please sign in to comment.