mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 14:51:18 +00:00
test(backend): move tests to *_test pkg
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package organization
|
||||
package organization_test
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/get-drexa/drexa/internal/organization"
|
||||
)
|
||||
|
||||
func TestNormalizeSlug(t *testing.T) {
|
||||
@@ -61,7 +63,7 @@ func TestNormalizeSlug(t *testing.T) {
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
got, err := NormalizeSlug(tt.input)
|
||||
got, err := organization.NormalizeSlug(tt.input)
|
||||
if tt.wantErr {
|
||||
if err == nil {
|
||||
t.Fatalf("expected error, got none (slug=%q)", got)
|
||||
|
||||
Reference in New Issue
Block a user