diff options
Diffstat (limited to 'modules/templates/helper_test.go')
-rw-r--r-- | modules/templates/helper_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/templates/helper_test.go b/modules/templates/helper_test.go index e2997cb853..5ebae7afef 100644 --- a/modules/templates/helper_test.go +++ b/modules/templates/helper_test.go @@ -17,8 +17,8 @@ func TestSubjectBodySeparator(t *testing.T) { assert.Empty(t, subject, "no subject found, but one expected") assert.Equal(t, body, input) } else { - assert.Equal(t, subject, string(input[0:loc[0]])) - assert.Equal(t, body, string(input[loc[1]:])) + assert.Equal(t, subject, input[0:loc[0]]) + assert.Equal(t, body, input[loc[1]:]) } } |