i18n: Update i18n_test.go and response_test.go

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-02-09 14:17:16 +01:00
parent 7242bfba70
commit 77b97f78f7
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ func TestMsg(t *testing.T) {
t.Run("unexpected error", func(t *testing.T) {
msg := Msg(ErrUnexpected, "A cat")
assert.Equal(t, "Unexpected error, please try again", msg)
assert.Equal(t, "Something went wrong, try again", msg)
})
t.Run("already exists german", func(t *testing.T) {
@ -63,7 +63,7 @@ func TestError(t *testing.T) {
t.Run("unexpected error", func(t *testing.T) {
err := Error(ErrUnexpected, "A cat")
assert.EqualError(t, err, "Unexpected error, please try again")
assert.EqualError(t, err, "Something went wrong, try again")
})
t.Run("already exists german", func(t *testing.T) {

View file

@ -19,7 +19,7 @@ func TestNewResponse(t *testing.T) {
t.Run("unexpected error", func(t *testing.T) {
resp := NewResponse(http.StatusInternalServerError, ErrUnexpected, "A cat")
assert.Equal(t, http.StatusInternalServerError, resp.Code)
assert.Equal(t, "Unexpected error, please try again", resp.Err)
assert.Equal(t, "Something went wrong, try again", resp.Err)
assert.Equal(t, "", resp.Msg)
})