mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: move resource name test
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
package util_test
|
package util
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/usememos/memos/internal/util"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestUIDMatcher(t *testing.T) {
|
func TestUIDMatcher(t *testing.T) {
|
||||||
@@ -28,7 +26,7 @@ func TestUIDMatcher(t *testing.T) {
|
|||||||
|
|
||||||
for _, test := range tests {
|
for _, test := range tests {
|
||||||
t.Run(test.input, func(*testing.T) {
|
t.Run(test.input, func(*testing.T) {
|
||||||
result := util.UIDMatcher.MatchString(test.input)
|
result := UIDMatcher.MatchString(test.input)
|
||||||
if result != test.expected {
|
if result != test.expected {
|
||||||
t.Errorf("For input '%s', expected %v but got %v", test.input, test.expected, result)
|
t.Errorf("For input '%s', expected %v but got %v", test.input, test.expected, result)
|
||||||
}
|
}
|
Reference in New Issue
Block a user