Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: move resource name test
Stevenfdf9d9f5067c
diff --git a/test/util/resource_name_test.go b/internal/util/resource_name_test.gosimilarity index 84%rename from test/util/resource_name_test.gorename to internal/util/resource_name_test.goindex 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 utilimport ("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)}