From 2a68a6d440f5c76c6d13ae714cdc4791b284fde4 Mon Sep 17 00:00:00 2001 From: Integralist Date: Fri, 24 Jun 2022 13:02:27 +0100 Subject: [PATCH] refactor the name of the tests --- pkg/commands/profile/profile_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/commands/profile/profile_test.go b/pkg/commands/profile/profile_test.go index 11ee8b916..240e1af89 100644 --- a/pkg/commands/profile/profile_test.go +++ b/pkg/commands/profile/profile_test.go @@ -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", }, @@ -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", }, @@ -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", },