Add UpdateSet
This commit is contained in:
@@ -66,8 +66,9 @@ func TestSaveUser_Valid(t *testing.T) {
|
||||
Password: "mypass",
|
||||
Email: "too@long.test",
|
||||
}
|
||||
|
||||
SetRelaxed()
|
||||
user, err := p.SaveUser(context.TODO(), data)
|
||||
SetStrict()
|
||||
|
||||
if err != nil {
|
||||
t.Fatalf("Should have saved user %#v", err)
|
||||
@@ -152,8 +153,8 @@ func TestSaveUser_UsesSysDb(t *testing.T) {
|
||||
|
||||
delete(found, "_id")
|
||||
delete(found, "password")
|
||||
delete(found, "created_at")
|
||||
delete(found, "updated_at")
|
||||
delete(found, "createdAt")
|
||||
delete(found, "updatedAt")
|
||||
|
||||
d, _ := mongo.ToMap(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user