6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 19:09:45 +00:00

Fix incorrect tests in repo_test

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 21:10:13 +02:00
parent f9ff6e0dbd
commit 5922fd8e3c

View File

@@ -73,12 +73,12 @@ func TestUntracked(t *testing.T) {
{
name: "single untracked",
repoMaker: test.RepoWithUntracked,
want: 0,
want: 1,
},
{
name: "single tracked ",
repoMaker: test.RepoWithStaged,
want: 1,
want: 0,
},
{
name: "committed",
@@ -96,7 +96,7 @@ func TestUntracked(t *testing.T) {
t.Run(test.name, func(t *testing.T) {
r, _ := Open(test.repoMaker(t).Path())
got, err := r.Uncommitted()
got, err := r.Untracked()
if err != nil {
t.Errorf("got error %q", err)
}