Skip to content

Commit

Permalink
fix: Failing tests related to checking invalid input in formFields
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
deepjyoti30-st committed Sep 24, 2024
1 parent 84851f5 commit 8c7bf43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipe/emailpassword/formFieldValidator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{
Expand All @@ -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{}{
Expand Down

0 comments on commit 8c7bf43

Please sign in to comment.