You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-06-25 00:46:51 +02:00
Completed signup package and hooked up to web-api. Can use the swagger
ui to signup a new account.
This commit is contained in:
@ -352,7 +352,7 @@ func TestCreateExistingEntry(t *testing.T) {
|
||||
if err != nil || arcRes == nil {
|
||||
t.Log("\t\tGot :", err)
|
||||
t.Fatalf("\t%s\tFind user account failed.", tests.Failed)
|
||||
} else if findRes.ArchivedAt.Valid && !findRes.ArchivedAt.Time.IsZero() {
|
||||
} else if findRes.ArchivedAt != nil && findRes.ArchivedAt.Valid && !findRes.ArchivedAt.Time.IsZero() {
|
||||
t.Fatalf("\t%s\tExpected user account to have archived_at empty", tests.Failed)
|
||||
}
|
||||
|
||||
@ -657,7 +657,7 @@ func TestCrud(t *testing.T) {
|
||||
Status: ua.Status,
|
||||
CreatedAt: ua.CreatedAt,
|
||||
UpdatedAt: now,
|
||||
ArchivedAt: pq.NullTime{Time: now, Valid: true},
|
||||
ArchivedAt: &pq.NullTime{Time: now, Valid: true},
|
||||
},
|
||||
}
|
||||
if diff := cmp.Diff(findRes, expected); diff != "" {
|
||||
|
Reference in New Issue
Block a user