From fdf9d9f5067c763d26a23027d3e1f62f64a742b7 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 17 Mar 2025 21:41:21 +0800 Subject: [PATCH] chore: move resource name test --- {test => internal}/util/resource_name_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) rename {test => internal}/util/resource_name_test.go (84%) diff --git a/test/util/resource_name_test.go b/internal/util/resource_name_test.go similarity index 84% rename from test/util/resource_name_test.go rename to internal/util/resource_name_test.go index bf20e5958..de7a5b3e8 100644 --- a/test/util/resource_name_test.go +++ b/internal/util/resource_name_test.go @@ -1,9 +1,7 @@ -package util_test +package util import ( "testing" - - "github.com/usememos/memos/internal/util" ) func TestUIDMatcher(t *testing.T) { @@ -28,7 +26,7 @@ func TestUIDMatcher(t *testing.T) { for _, test := range tests { t.Run(test.input, func(*testing.T) { - result := util.UIDMatcher.MatchString(test.input) + result := UIDMatcher.MatchString(test.input) if result != test.expected { t.Errorf("For input '%s', expected %v but got %v", test.input, test.expected, result) }