6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-16 03:48:24 +00:00
prologic-saltyim/lookup_test.go
James Mills 14857206cb Add client e2e integration tests (#180)
Co-authored-by: James Mills <1290234+prologic@users.noreply.github.com>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/180
2023-01-26 22:30:16 +00:00

19 lines
355 B
Go

package saltyim
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestParseAddr(t *testing.T) {
assert := assert.New(t)
require := require.New(t)
addr, err := ParseAddr("alice@example.com")
require.NoError(err)
assert.Equal("alice", addr.User())
assert.Equal("example.com", addr.Domain())
}