1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

api: standardise strip fn names

This commit is contained in:
Adhityaa Chandrasekar
2018-07-24 12:30:45 +05:30
parent a8ecbd9717
commit c57bc6a39b
11 changed files with 16 additions and 16 deletions

View File

@ -4,7 +4,7 @@ import (
"testing"
)
func TestStripEmailBasics(t *testing.T) {
func TestEmailStripBasics(t *testing.T) {
tests := map[string]string{
"test@example.com": "test@example.com",
"test+strip@example.com": "test@example.com",
@ -12,8 +12,8 @@ func TestStripEmailBasics(t *testing.T) {
}
for in, out := range tests {
if stripEmail(in) != out {
t.Errorf("for in=%s expected out=%s got out=%s", in, out, stripEmail(in))
if emailStrip(in) != out {
t.Errorf("for in=%s expected out=%s got out=%s", in, out, emailStrip(in))
return
}
}