1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
mxpv-podsync/pkg/id/hashids_test.go
2017-10-20 19:21:44 -07:00

20 lines
307 B
Go

package id
import (
"testing"
"github.com/mxpv/podsync/pkg/api"
"github.com/stretchr/testify/require"
)
func TestEncode(t *testing.T) {
hid, err := NewIdGenerator()
require.NoError(t, err)
feed := &api.Feed{}
hash, err := hid.Generate(feed)
require.NoError(t, err)
require.NotEmpty(t, hash)
}