From 2b5cb3a093c11a48dbca3286ab10b1116aa0fc90 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 25 May 2026 22:21:14 -0400 Subject: [PATCH] Test fixes --- tx0/user/user_profile.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tx0/user/user_profile.go b/tx0/user/user_profile.go index 02b0c98..c071d56 100644 --- a/tx0/user/user_profile.go +++ b/tx0/user/user_profile.go @@ -2,6 +2,8 @@ package user import ( "testing" + + "github.com/stretchr/testify/assert" ) @@ -29,9 +31,10 @@ func InitUserProfile(usr *User) (usrProfile *UserProfile, done bool) { func TestInitUserProfile(t *testing.T) { usr := User{} - usr.username = "Bob" - usr.Phone = "+12224572351" + usr.Username = "Bob" + usr.PhoneNumber = "+12224572351" usr.Password = "TheNight!" profile, done := InitUserProfile(&usr) - t.Assert(done, true, "Error") + assert.Equal(t, done, true, "Error") + assert.NotEmpty(t, profile, "UserProfile is empty") }