mirror of
https://github.com/walles/moar.git
synced 2024-11-27 01:05:23 +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\\")
|
||
}
|