From 9d137f8d12b55a97eb09de05878afc67524cf5c9 Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Wed, 6 Nov 2024 15:42:36 +0100 Subject: [PATCH] chore: fix test --- selfservice/strategy/link/strategy_verification_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfservice/strategy/link/strategy_verification_test.go b/selfservice/strategy/link/strategy_verification_test.go index fb0920c5f544..ac48fc949a75 100644 --- a/selfservice/strategy/link/strategy_verification_test.go +++ b/selfservice/strategy/link/strategy_verification_test.go @@ -11,6 +11,7 @@ import ( "net/http" "net/http/httptest" "net/url" + "strings" "sync" "testing" "time" @@ -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) }