aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/signup_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/signup_test.go')
-rw-r--r--integrations/signup_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/integrations/signup_test.go b/integrations/signup_test.go
index 7b45674376..b34e40f286 100644
--- a/integrations/signup_test.go
+++ b/integrations/signup_test.go
@@ -13,7 +13,7 @@ import (
"code.gitea.io/gitea/models/unittest"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/setting"
- "code.gitea.io/gitea/modules/translation/i18n"
+ "code.gitea.io/gitea/modules/translation"
"github.com/stretchr/testify/assert"
)
@@ -68,9 +68,9 @@ func TestSignupEmail(t *testing.T) {
wantStatus int
wantMsg string
}{
- {"exampleUser@example.com\r\n", http.StatusOK, i18n.Tr("en", "form.email_invalid")},
- {"exampleUser@example.com\r", http.StatusOK, i18n.Tr("en", "form.email_invalid")},
- {"exampleUser@example.com\n", http.StatusOK, i18n.Tr("en", "form.email_invalid")},
+ {"exampleUser@example.com\r\n", http.StatusOK, translation.NewLocale("en-US").Tr("form.email_invalid")},
+ {"exampleUser@example.com\r", http.StatusOK, translation.NewLocale("en-US").Tr("form.email_invalid")},
+ {"exampleUser@example.com\n", http.StatusOK, translation.NewLocale("en-US").Tr("form.email_invalid")},
{"exampleUser@example.com", http.StatusSeeOther, ""},
}