Skip to content

Commit 1b8a9d4

Browse files
committed
fix: update tests
1 parent 044eb45 commit 1b8a9d4

File tree

17 files changed

+5
-5
lines changed

17 files changed

+5
-5
lines changed

cmd/server/server_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func TestParseAgentType(t *testing.T) {
5050
{
5151
firstArg: "cursor-agent",
5252
agentTypeVar: "",
53-
want: AgentTypeCursorAgent,
53+
want: AgentTypeCursor,
5454
},
5555
{
5656
firstArg: "cursor",
@@ -65,7 +65,7 @@ func TestParseAgentType(t *testing.T) {
6565
{
6666
firstArg: "q",
6767
agentTypeVar: "",
68-
want: AgentTypeQ,
68+
want: AgentTypeAmazonQ,
6969
},
7070
{
7171
firstArg: "auggie",
@@ -115,12 +115,12 @@ func TestParseAgentType(t *testing.T) {
115115
{
116116
firstArg: "claude",
117117
agentTypeVar: "q",
118-
want: AgentTypeQ,
118+
want: AgentTypeAmazonQ,
119119
},
120120
{
121121
firstArg: "claude",
122122
agentTypeVar: "cursor-agent",
123-
want: AgentTypeCursorAgent,
123+
want: AgentTypeCursor,
124124
},
125125
{
126126
firstArg: "claude",

lib/msgfmt/msgfmt_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func TestTrimEmptyLines(t *testing.T) {
218218

219219
func TestFormatAgentMessage(t *testing.T) {
220220
dir := "testdata/format"
221-
agentTypes := []AgentType{AgentTypeClaude, AgentTypeGoose, AgentTypeAider, AgentTypeGemini, AgentTypeAmp, AgentTypeCodex, AgentTypeCursorAgent, AgentTypeCursor, AgentTypeAuggie, AgentTypeQ, AgentTypeCustom}
221+
agentTypes := []AgentType{AgentTypeClaude, AgentTypeGoose, AgentTypeAider, AgentTypeGemini, AgentTypeAmp, AgentTypeCodex, AgentTypeCursor, AgentTypeAuggie, AgentTypeAmazonQ, AgentTypeCustom}
222222
for _, agentType := range agentTypes {
223223
t.Run(string(agentType), func(t *testing.T) {
224224
cases, err := testdataDir.ReadDir(path.Join(dir, string(agentType)))

lib/msgfmt/testdata/format/q/confirmation_box/expected.txt renamed to lib/msgfmt/testdata/format/amazonq/confirmation_box/expected.txt

File renamed without changes.

lib/msgfmt/testdata/format/q/confirmation_box/msg.txt renamed to lib/msgfmt/testdata/format/amazonq/confirmation_box/msg.txt

File renamed without changes.

lib/msgfmt/testdata/format/q/confirmation_box/user.txt renamed to lib/msgfmt/testdata/format/amazonq/confirmation_box/user.txt

File renamed without changes.

lib/msgfmt/testdata/format/q/first_message/expected.txt renamed to lib/msgfmt/testdata/format/amazonq/first_message/expected.txt

File renamed without changes.
File renamed without changes.

lib/msgfmt/testdata/format/q/first_message/user.txt renamed to lib/msgfmt/testdata/format/amazonq/first_message/user.txt

File renamed without changes.

lib/msgfmt/testdata/format/q/multi-line-input/expected.txt renamed to lib/msgfmt/testdata/format/amazonq/multi-line-input/expected.txt

File renamed without changes.

lib/msgfmt/testdata/format/q/multi-line-input/msg.txt renamed to lib/msgfmt/testdata/format/amazonq/multi-line-input/msg.txt

File renamed without changes.

0 commit comments

Comments
 (0)