Skip to content

Commit 8c7bf43

Browse files
fix: Failing tests related to checking invalid input in formFields
This commit fixes a failing test case that was testing for an invalid input in formFields with non string value but since that type of value is now supported, the test case was broken.
1 parent 84851f5 commit 8c7bf43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

recipe/emailpassword/formFieldValidator_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ func TestInvalidAPIInputForFormFields(t *testing.T) {
168168
},
169169
},
170170
},
171-
expected: "formFields must be an array of objects containing id and value of type string",
172-
fieldError: false,
171+
expected: "Field is not optional",
172+
fieldError: true,
173173
},
174174
{
175175
input: map[string]interface{}{
@@ -179,8 +179,8 @@ func TestInvalidAPIInputForFormFields(t *testing.T) {
179179
},
180180
},
181181
},
182-
expected: "formFields must be an array of objects containing id and value of type string",
183-
fieldError: false,
182+
expected: "Field is not optional",
183+
fieldError: true,
184184
},
185185
{
186186
input: map[string]interface{}{

0 commit comments

Comments
 (0)