2019-03-04 23:07:52 +00:00
|
|
|
From a66029c8d92210dec8272f9d89964b9f5c322f9a Mon Sep 17 00:00:00 2001
|
2019-03-01 23:59:48 +00:00
|
|
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
|
Date: Fri, 1 Mar 2019 18:47:19 -0500
|
|
|
|
Subject: [PATCH] Fix tests against latest emoji package.
|
|
|
|
|
|
|
|
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
|
---
|
|
|
|
docs/data/docs.json | 2 +-
|
|
|
|
tpl/transform/init.go | 2 +-
|
|
|
|
tpl/transform/transform_test.go | 2 +-
|
|
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/docs/data/docs.json b/docs/data/docs.json
|
2019-03-04 23:07:52 +00:00
|
|
|
index 5b1388fe..c7687e45 100644
|
2019-03-01 23:59:48 +00:00
|
|
|
--- a/docs/data/docs.json
|
|
|
|
+++ b/docs/data/docs.json
|
2019-03-04 23:07:52 +00:00
|
|
|
@@ -3866,7 +3866,7 @@
|
2019-03-01 23:59:48 +00:00
|
|
|
"Examples": [
|
|
|
|
[
|
|
|
|
"{{ \"I :heart: Hugo\" | emojify }}",
|
|
|
|
- "I ❤️ Hugo"
|
|
|
|
+ "I ❤ Hugo"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
diff --git a/tpl/transform/init.go b/tpl/transform/init.go
|
2019-03-04 23:07:52 +00:00
|
|
|
index 62cb0a9c..2783a513 100644
|
2019-03-01 23:59:48 +00:00
|
|
|
--- a/tpl/transform/init.go
|
|
|
|
+++ b/tpl/transform/init.go
|
|
|
|
@@ -32,7 +32,7 @@ func init() {
|
|
|
|
ns.AddMethodMapping(ctx.Emojify,
|
|
|
|
[]string{"emojify"},
|
|
|
|
[][2]string{
|
|
|
|
- {`{{ "I :heart: Hugo" | emojify }}`, `I ❤️ Hugo`},
|
|
|
|
+ {`{{ "I :heart: Hugo" | emojify }}`, `I ❤ Hugo`},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
|
|
|
|
diff --git a/tpl/transform/transform_test.go b/tpl/transform/transform_test.go
|
2019-03-04 23:07:52 +00:00
|
|
|
index a09ec6fb..6db2272d 100644
|
2019-03-01 23:59:48 +00:00
|
|
|
--- a/tpl/transform/transform_test.go
|
|
|
|
+++ b/tpl/transform/transform_test.go
|
|
|
|
@@ -41,7 +41,7 @@ func TestEmojify(t *testing.T) {
|
|
|
|
expect interface{}
|
|
|
|
}{
|
|
|
|
{":notamoji:", template.HTML(":notamoji:")},
|
|
|
|
- {"I :heart: Hugo", template.HTML("I ❤️ Hugo")},
|
|
|
|
+ {"I :heart: Hugo", template.HTML("I ❤ Hugo")},
|
|
|
|
// errors
|
|
|
|
{tstNoStringer{}, false},
|
|
|
|
} {
|
|
|
|
--
|
|
|
|
2.20.1
|
|
|
|
|