diff --git a/recipe/emailpassword/formFieldValidator_test.go b/recipe/emailpassword/formFieldValidator_test.go index ca915b33..869fb5ed 100644 --- a/recipe/emailpassword/formFieldValidator_test.go +++ b/recipe/emailpassword/formFieldValidator_test.go @@ -168,8 +168,8 @@ func TestInvalidAPIInputForFormFields(t *testing.T) { }, }, }, - expected: "formFields must be an array of objects containing id and value of type string", - fieldError: false, + expected: "Field is not optional", + fieldError: true, }, { input: map[string]interface{}{ @@ -179,8 +179,8 @@ func TestInvalidAPIInputForFormFields(t *testing.T) { }, }, }, - expected: "formFields must be an array of objects containing id and value of type string", - fieldError: false, + expected: "Field is not optional", + fieldError: true, }, { input: map[string]interface{}{