Skip to content

Commit

Permalink
group switch - assert outcome
Browse files Browse the repository at this point in the history
Signed-off-by: gpltaylor <gpltaylor@gmail.com>
  • Loading branch information
gpltaylor committed Apr 12, 2024
1 parent c01d7a4 commit 81790f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/cli/cmd/group/groupswitch/switch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,16 @@ func Test_Run(t *testing.T) {
actualConfig, err := cli.ReadWorkspaceSection(config)
require.NoError(t, err)
require.Equal(t, expectedConfig, actualConfig)

expected := []any{
output.LogOutput{
Format: "Switched to resource group %q",
Params: []any{"a"},
},
}

require.Equal(t, expected, outputSink.Writes)

})

t.Run("Switch (not existent)", func(t *testing.T) {
Expand Down

0 comments on commit 81790f7

Please sign in to comment.