Skip to content

Commit

Permalink
fix help text test (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmister authored and levb committed Jan 20, 2020
1 parent 5d8ca77 commit 32b3d6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,19 +176,19 @@ func TestPlugin_ExecuteCommand_Installation(t *testing.T) {
}{
"no params - user is sys admin": {
commandArgs: &model.CommandArgs{Command: "/jira install", UserId: mockUserIDSysAdmin},
expectedMsgPrefix: strings.TrimSpace(commonHelpText + sysAdminHelpText),
expectedMsgPrefix: strings.TrimSpace(helpTextHeader + commonHelpText + sysAdminHelpText),
},
"no params - user is not sys admin": {
commandArgs: &model.CommandArgs{Command: "/jira install", UserId: mockUserIDNonSysAdmin},
expectedMsgPrefix: strings.TrimSpace(commonHelpText),
expectedMsgPrefix: strings.TrimSpace(helpTextHeader + commonHelpText),
},
"install server without URL": {
commandArgs: &model.CommandArgs{Command: "/jira install server", UserId: mockUserIDSysAdmin},
expectedMsgPrefix: strings.TrimSpace(commonHelpText + sysAdminHelpText),
expectedMsgPrefix: strings.TrimSpace(helpTextHeader + commonHelpText + sysAdminHelpText),
},
"install cloud instance without URL": {
commandArgs: &model.CommandArgs{Command: "/jira install cloud", UserId: mockUserIDSysAdmin},
expectedMsgPrefix: strings.TrimSpace(commonHelpText + sysAdminHelpText),
expectedMsgPrefix: strings.TrimSpace(helpTextHeader + commonHelpText + sysAdminHelpText),
},
"install cloud instance as server": {
commandArgs: &model.CommandArgs{Command: "/jira install server https://mmtest.atlassian.net", UserId: mockUserIDSysAdmin},
Expand Down

0 comments on commit 32b3d6b

Please sign in to comment.