mirror of
https://github.com/status-im/status-go.git
synced 2025-01-21 04:01:45 +00:00
22 lines
476 B
Go
22 lines
476 B
Go
package pathprocessor
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGettingNameFromEnsUsername(t *testing.T) {
|
|
ensName := "test"
|
|
name := getNameFromEnsUsername(ensName)
|
|
require.Equal(t, ensName, name)
|
|
|
|
ensStatusName := "test.stateofus.eth"
|
|
name = getNameFromEnsUsername(ensStatusName)
|
|
require.Equal(t, ensName, name)
|
|
|
|
ensNotStatusName := "test.eth"
|
|
name = getNameFromEnsUsername(ensNotStatusName)
|
|
require.Equal(t, ensNotStatusName, name)
|
|
}
|