Commit fdf9d9f5 authored by Steven's avatar Steven

chore: move resource name test

parent b79755dd
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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment