19 lines
373 B
Go
19 lines
373 B
Go
package compat
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
const examplePluginPath = "github.com/gotify/server/v2/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())
|
|
}
|