Fix failing tests for Copilot replacement

This commit is contained in:
Andy Feller 2025-07-16 15:36:53 -04:00
parent b433792a44
commit 973718712a
2 changed files with 2 additions and 2 deletions

View file

@ -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",
}, },
{ {

View file

@ -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",