tulip/cmd/red-tulip/pages/pages_test.go

12 lines
227 B
Go
Raw Permalink Normal View History

2024-01-29 23:45:46 +00:00
package pages
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestEmailHide(t *testing.T) {
assert.Equal(t, "xx", EmailHide("hi"))
assert.Equal(t, "xxxxxxx@xxxxxxx.xxx", EmailHide("example@example.com"))
}