Files
server/plugin/compat/plugin_test.go
eternal-flame-AD e5b24f4c92 Add plugin feature
Fixed database migration
Added a plugin system based on the go plugin package
2019-02-09 12:52:01 +01:00

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())
}