Revert "Create update_test.go"
All checks were successful
/ check (push) Successful in 2s

This reverts commit 31d313c6a9.
This commit is contained in:
Oliver Davies 2025-07-31 23:50:21 +01:00
parent 80ab07e86e
commit cf3d8636e2

View file

@ -1,26 +0,0 @@
package repositories_test
import (
"slices"
"testing"
"git-repo-updater/internal/utils"
)
func TestIsIgnoredRepo(t *testing.T) {
ignored := []string{"~/Code/skip-me"}
repoPath := "/home/opdavies/Code/skip-me"
var expandedIgnored []string
for _, path := range ignored {
e, _ := utils.ExpandPath(path)
expandedIgnored = append(expandedIgnored, e)
}
isIgnored := slices.Contains(expandedIgnored, repoPath)
if !isIgnored {
t.Errorf("expected repo %s to be ignored, but it was not", repoPath)
}
}