photoprism/internal/event/log_test.go

14 lines
192 B
Go
Raw Normal View History

2020-04-29 10:23:09 +00:00
package event
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestNewHook(t *testing.T) {
hub := NewHub()
hook := NewHook(hub)
assert.IsType(t, &Hook{hub: hub}, hook)
}