Fix failing tests for Copilot replacement
This commit is contained in:
parent
b433792a44
commit
973718712a
2 changed files with 2 additions and 2 deletions
|
|
@ -317,7 +317,7 @@ func Test_createRun(t *testing.T) {
|
||||||
WebMode: true,
|
WebMode: true,
|
||||||
Assignees: []string{"@copilot"},
|
Assignees: []string{"@copilot"},
|
||||||
},
|
},
|
||||||
wantsBrowse: "https://github.com/OWNER/REPO/issues/new?assignees=copilot&body=",
|
wantsBrowse: "https://github.com/OWNER/REPO/issues/new?assignees=Copilot&body=",
|
||||||
wantsStderr: "Opening https://github.com/OWNER/REPO/issues/new in your browser.\n",
|
wantsStderr: "Opening https://github.com/OWNER/REPO/issues/new in your browser.\n",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,7 @@ func TestCopilotReplacer_ReplaceSlice(t *testing.T) {
|
||||||
args: args{
|
args: args{
|
||||||
handles: []string{"monalisa", "@copilot", "hubot"},
|
handles: []string{"monalisa", "@copilot", "hubot"},
|
||||||
},
|
},
|
||||||
want: []string{"monalisa", "copilot", "hubot"},
|
want: []string{"monalisa", "Copilot", "hubot"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "handles no @copilot mentions",
|
name: "handles no @copilot mentions",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue