Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Nov 6, 2024
1 parent 0efa61f commit 9d137f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfservice/strategy/link/strategy_verification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"net/http"
"net/http/httptest"
"net/url"
"strings"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -143,7 +144,7 @@ func TestVerification(t *testing.T) {
t.Run("description=should require a valid email to be sent", func(t *testing.T) {
check := func(t *testing.T, actual string, value string) {
assert.EqualValues(t, string(node.LinkGroup), gjson.Get(actual, "active").String(), "%s", actual)
assert.EqualValues(t, fmt.Sprintf("%s is not a valid email address", value),
assert.EqualValues(t, strings.ReplaceAll(fmt.Sprintf("%q is not a valid email address", value), "\"", ""),
gjson.Get(actual, "ui.nodes.#(attributes.name==email).messages.0.text").String(),
"%s", actual)
}
Expand Down

0 comments on commit 9d137f8

Please sign in to comment.