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:
parent
ee308a4994
commit
03694f7502
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user