From 8dd80e4806e4909245a3626be9f97aca9c98f984 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Fri, 5 Apr 2024 17:51:21 -0700 Subject: [PATCH] even more module updates! --- api/services/userService.go | 5 +++-- api/services/userService_test.go | 9 +++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/api/services/userService.go b/api/services/userService.go index 5c21787..48f0948 100644 --- a/api/services/userService.go +++ b/api/services/userService.go @@ -3,10 +3,11 @@ package services import ( "database/sql" "errors" - "go-cook/api/domain" - "go-cook/api/repositories" "strings" + "git.jamestombleson.com/jtom38/go-cook/api/domain" + "git.jamestombleson.com/jtom38/go-cook/api/repositories" + "golang.org/x/crypto/bcrypt" ) diff --git a/api/services/userService_test.go b/api/services/userService_test.go index f5cf16f..5be3811 100644 --- a/api/services/userService_test.go +++ b/api/services/userService_test.go @@ -1,9 +1,10 @@ package services_test import ( - "go-cook/api/services" "testing" + "git.jamestombleson.com/jtom38/go-cook/api/services" + "github.com/DATA-DOG/go-sqlmock" ) @@ -23,7 +24,7 @@ func TestPasswordIsLongEnough(t *testing.T) { } } -func TestPasswordIsToShort(t *testing.T){ +func TestPasswordIsToShort(t *testing.T) { db, _, err := sqlmock.New() if err != nil { t.Log(err.Error()) @@ -35,11 +36,11 @@ func TestPasswordIsToShort(t *testing.T){ err = client.CheckPasswordForRequirements("short") if err != nil { msg := err.Error() - if (msg != services.ErrPasswordNotLongEnough) { + if msg != services.ErrPasswordNotLongEnough { t.Log("wrong error") t.FailNow() } - + } else { t.Logf("expected a err") t.FailNow()