mirror of
https://github.com/walles/moar.git
synced 2024-11-25 19:56:20 +03:00
18 lines
314 B
Go
18 lines
314 B
Go
package twin
|
||
|
||
import (
|
||
"strings"
|
||
"testing"
|
||
|
||
"gotest.tools/v3/assert"
|
||
)
|
||
|
||
func TestHyperlinkToNormal(t *testing.T) {
|
||
url := "http://example.com"
|
||
|
||
style := StyleDefault.WithHyperlink(&url)
|
||
assert.Equal(t,
|
||
strings.ReplaceAll(StyleDefault.RenderUpdateFrom(style, ColorCount16), "", "ESC"),
|
||
"ESC]8;;ESC\\")
|
||
}
|