Skip to content

Commit

Permalink
refactor the name of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Jun 24, 2022
1 parent c6b018c commit 2a68a6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/commands/profile/profile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ func TestToken(t *testing.T) {
scenarios := []Scenario{
{
TestScenario: testutil.TestScenario{
Name: "validate default user token is displayed",
Name: "validate the active profile token is displayed by default",
Args: args("profile token"),
WantOutput: "123",
},
Expand All @@ -583,7 +583,7 @@ func TestToken(t *testing.T) {
},
{
TestScenario: testutil.TestScenario{
Name: "validate specified user token is displayed",
Name: "validate token is displayed for the specified profile",
Args: args("profile token --name bar"), // we choose a non-default profile
WantOutput: "456",
},
Expand All @@ -604,7 +604,7 @@ func TestToken(t *testing.T) {
},
{
TestScenario: testutil.TestScenario{
Name: "validate unknown user causes an error",
Name: "validate an unrecognised profile causes an error",
Args: args("profile token --name unknown"),
WantError: "profile 'unknown' does not exist",
},
Expand Down

0 comments on commit 2a68a6d

Please sign in to comment.