File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ func TestRender_StandardLinks(t *testing.T) {
24
24
25
25
test := func (input , expected string ) {
26
26
buffer := RenderString (input , setting .AppSubURL , nil , false )
27
- assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (string ( buffer ) ))
27
+ assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (buffer ))
28
28
}
29
29
30
30
googleRendered := `<p><a href="https://google.com/" title="https://google.com/">https://google.com/</a></p>`
@@ -41,7 +41,7 @@ func TestRender_Images(t *testing.T) {
41
41
42
42
test := func (input , expected string ) {
43
43
buffer := RenderString (input , setting .AppSubURL , nil , false )
44
- assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (string ( buffer ) ))
44
+ assert .Equal (t , strings .TrimSpace (expected ), strings .TrimSpace (buffer ))
45
45
}
46
46
47
47
url := "../../.images/src/02/train.jpg"
You can’t perform that action at this time.
0 commit comments