@@ -395,7 +395,7 @@ func TestGetUsersInvalidEmail(t *testing.T) {
395
395
getUsersResult , err := client .GetUsers (
396
396
context .Background (),
397
397
[]UserIdentifier {EmailIdentifier {"invalid email addr" }})
398
- want := `malformed email string: "invalid email addr" `
398
+ want := `malformed email string`
399
399
if getUsersResult != nil || err == nil || err .Error () != want {
400
400
t .Errorf ("GetUsers() = (%v, %q); want = (nil, %q)" , getUsersResult , err , want )
401
401
}
@@ -632,16 +632,16 @@ func TestInvalidCreateUser(t *testing.T) {
632
632
"email must be a non-empty string" ,
633
633
}, {
634
634
(& UserToCreate {}).Email ("a" ),
635
- `malformed email string: "a" ` ,
635
+ `malformed email string` ,
636
636
}, {
637
637
(& UserToCreate {}).Email ("a@" ),
638
- `malformed email string: "a@" ` ,
638
+ `malformed email string` ,
639
639
}, {
640
640
(& UserToCreate {}).Email ("@a" ),
641
- `malformed email string: "@a" ` ,
641
+ `malformed email string` ,
642
642
}, {
643
643
(& UserToCreate {}).Email ("a@a@a" ),
644
- `malformed email string: "a@a@a" ` ,
644
+ `malformed email string` ,
645
645
}, {
646
646
(& UserToCreate {}).MFASettings (MultiFactorSettings {
647
647
EnrolledFactors : []* MultiFactorInfo {
@@ -861,7 +861,7 @@ func TestInvalidUpdateUser(t *testing.T) {
861
861
"email must be a non-empty string" ,
862
862
}, {
863
863
(& UserToUpdate {}).Email ("invalid" ),
864
- `malformed email string: "invalid" ` ,
864
+ `malformed email string` ,
865
865
}, {
866
866
(& UserToUpdate {}).PhoneNumber ("1" ),
867
867
"phone number must be a valid, E.164 compliant identifier" ,
@@ -1528,7 +1528,7 @@ func TestUserToImportError(t *testing.T) {
1528
1528
},
1529
1529
{
1530
1530
(& UserToImport {}).UID ("test" ).Email ("not-an-email" ),
1531
- `malformed email string: "not-an-email" ` ,
1531
+ `malformed email string` ,
1532
1532
},
1533
1533
{
1534
1534
(& UserToImport {}).UID ("test" ).PhoneNumber ("not-a-phone" ),
0 commit comments