diff options
Diffstat (limited to 'modules/markup/html_test.go')
-rw-r--r-- | modules/markup/html_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go index 370bc21822..e57187a677 100644 --- a/modules/markup/html_test.go +++ b/modules/markup/html_test.go @@ -7,6 +7,7 @@ package markup_test import ( "context" "io" + "os" "strings" "testing" @@ -32,6 +33,7 @@ func TestMain(m *testing.M) { if err := git.InitSimple(context.Background()); err != nil { log.Fatal("git init failed, err: %v", err) } + os.Exit(m.Run()) } func TestRender_Commits(t *testing.T) { @@ -336,7 +338,7 @@ func TestRender_emoji(t *testing.T) { `<p>Some text with <span class="emoji" aria-label="grinning face with smiling eyes">ð</span><span class="emoji" aria-label="grinning face with smiling eyes">ð</span> 2 emoji next to each other</p>`) test( "ððĪŠððĪâ", - `<p><span class="emoji" aria-label="smiling face with sunglasses">ð</span><span class="emoji" aria-label="zany face">ðĪŠ</span><span class="emoji" aria-label="locked with key">ð</span><span class="emoji" aria-label="money-mouth face">ðĪ</span><span class="emoji" aria-label="question mark">â</span></p>`) + `<p><span class="emoji" aria-label="smiling face with sunglasses">ð</span><span class="emoji" aria-label="zany face">ðĪŠ</span><span class="emoji" aria-label="locked with key">ð</span><span class="emoji" aria-label="money-mouth face">ðĪ</span><span class="emoji" aria-label="red question mark">â</span></p>`) // should match nothing test( |