1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

Fix arg order to asserts

This commit is contained in:
Cristian Betivu 2023-08-19 19:10:25 +03:00
parent ee308a4994
commit 03694f7502
3 changed files with 4 additions and 4 deletions

View File

@ -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)
}
})
}

View File

@ -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)
}
}

View File

@ -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)
})
}
}