photoprism/internal/event/log_test.go

15 lines
193 B
Go
Raw Normal View History

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