photoprism/internal/event/log_test.go
2020-11-21 18:08:41 +01:00

14 lines
193 B
Go

package event
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNewHook(t *testing.T) {
hub := NewHub()
hook := NewHook(hub)
assert.IsType(t, &Hook{hub: hub}, hook)
}