aboutsummaryrefslogtreecommitdiffstats
path: root/modules/templates/helper_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/templates/helper_test.go')
-rw-r--r--modules/templates/helper_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/templates/helper_test.go b/modules/templates/helper_test.go
index ec83e9ac33..739a92f34f 100644
--- a/modules/templates/helper_test.go
+++ b/modules/templates/helper_test.go
@@ -52,3 +52,7 @@ func TestSubjectBodySeparator(t *testing.T) {
"",
"Insuficient\n--\nSeparators")
}
+
+func TestJSEscapeSafe(t *testing.T) {
+ assert.EqualValues(t, `\u0026\u003C\u003E\'\"`, JSEscapeSafe(`&<>'"`))
+}