UserProfile #1

Merged
phoenix merged 30 commits from user_profile into main 2026-05-27 22:59:45 -04:00
2 changed files with 19 additions and 15 deletions
Showing only changes of commit f05a513926 - Show all commits
-15
View File
@@ -1,11 +1,5 @@
package user
import (
"testing"
"github.com/stretchr/testify/assert"
)
type UserProfile struct {
Usr *User `json:"user"`
@@ -29,12 +23,3 @@ func InitUserProfile(usr *User) (usrProfile *UserProfile, done bool) {
}
}
func TestInitUserProfile(t *testing.T) {
usr := User{}
usr.Username = "Bob"
usr.PhoneNumber = "+12224572351"
usr.Password = "TheNight!"
profile, done := InitUserProfile(&usr)
assert.Equal(t, done, true, "Error")
assert.NotEmpty(t, profile, "UserProfile is empty")
}
+19
View File
@@ -0,0 +1,19 @@
package user
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestInitUserProfile(t *testing.T) {
usr := User{}
usr.Username = "Bob"
usr.PhoneNumber = "+12224572351"
usr.Password = "TheNight!"
profile, done := InitUserProfile(&usr)
assert.Equal(t, done, true, "Error")
assert.NotEmpty(t, profile, "UserProfile is empty")
}