diff --git a/pkg/commands/git_commands/worktree_loader_test.go b/pkg/commands/git_commands/worktree_loader_test.go index 7f805b1b9..12b308074 100644 --- a/pkg/commands/git_commands/worktree_loader_test.go +++ b/pkg/commands/git_commands/worktree_loader_test.go @@ -186,7 +186,7 @@ branch refs/heads/mybranch-worktree assert.EqualError(t, errors.New(s.expectedErr), err.Error()) } else { assert.NoError(t, err) - assert.EqualValues(t, worktrees, s.expectedWorktrees) + assert.EqualValues(t, s.expectedWorktrees, worktrees) } }) } diff --git a/pkg/utils/formatting_test.go b/pkg/utils/formatting_test.go index 2de282311..b1777911b 100644 --- a/pkg/utils/formatting_test.go +++ b/pkg/utils/formatting_test.go @@ -79,7 +79,7 @@ func TestGetPadWidths(t *testing.T) { for _, test := range tests { output := getPadWidths(test.input) - assert.EqualValues(t, output, test.expected) + assert.EqualValues(t, test.expected, output) } } @@ -217,6 +217,6 @@ func TestRenderDisplayStrings(t *testing.T) { for _, test := range tests { output := RenderDisplayStrings(test.input, test.columnAlignments) - assert.EqualValues(t, output, test.expected) + assert.EqualValues(t, test.expected, output) } } diff --git a/pkg/utils/rebase_todo_test.go b/pkg/utils/rebase_todo_test.go index a9bcb574b..40f44a3cb 100644 --- a/pkg/utils/rebase_todo_test.go +++ b/pkg/utils/rebase_todo_test.go @@ -326,7 +326,7 @@ func TestRebaseCommands_moveFixupCommitDown(t *testing.T) { assert.EqualError(t, actualErr, scenario.expectedErr.Error()) } - assert.EqualValues(t, actualTodos, scenario.expectedTodos) + assert.EqualValues(t, scenario.expectedTodos, actualTodos) }) } }