summaryrefslogtreecommitdiff
path: root/internal/entry/entry_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-10-31 22:07:56 +0200
committerPaul Buetow <paul@buetow.org>2024-10-31 22:07:56 +0200
commit368d58e61ab3f9978c7cf51ee4c0d45263b9e5c5 (patch)
tree86c39f05f4d9d071ff3d9266599f96e37aff8c8e /internal/entry/entry_test.go
parente45b591404ebb36fa7d71510e99fdecf668a85e7 (diff)
refactor
Diffstat (limited to 'internal/entry/entry_test.go')
-rw-r--r--internal/entry/entry_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/entry/entry_test.go b/internal/entry/entry_test.go
index ac97f04..55d2379 100644
--- a/internal/entry/entry_test.go
+++ b/internal/entry/entry_test.go
@@ -81,7 +81,6 @@ func TestExtractURLs(t *testing.T) {
}
func TestHasTag(t *testing.T) {
- // TODO: Remove t.Parallel() everywhere
table := map[string][]string{
"foo.txt": []string{},
"foo.prio.txt": []string{"prio"},
@@ -94,12 +93,12 @@ func TestHasTag(t *testing.T) {
if err != nil {
t.Error(err)
}
- if len(expectedTags) != len(ent.tags) {
- t.Errorf("expected '%d' tags but got '%d'", len(expectedTags), len(ent.tags))
+ if len(expectedTags) != len(ent.simpleTags) {
+ t.Errorf("expected '%d' tags but got '%d'", len(expectedTags), len(ent.simpleTags))
}
for _, tag := range expectedTags {
if !ent.HasTag(tag) {
- t.Errorf("expected tag '%s' but got '%s'", tag, ent.tags)
+ t.Errorf("expected tag '%s' but got '%s'", tag, ent.simpleTags)
}
}
}