sharded-gotify/plugin/compat/plugin_test.go

19 lines
370 B
Go

package compat
import (
"testing"
"github.com/stretchr/testify/assert"
)
const examplePluginPath = "github.com/gotify/server/plugin/example/echo"
func TestPluginInfoStringer(t *testing.T) {
info := Info{
ModulePath: examplePluginPath,
}
assert.Equal(t, examplePluginPath, info.String())
info.Name = "test name"
assert.Equal(t, "test name", info.String())
}