Tests are working again

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-07-28 20:42:05 -03:00
parent 91c7ec3bd5
commit 0e08107738
44 changed files with 1640 additions and 1595 deletions

19
event/mock.go Normal file
View File

@@ -0,0 +1,19 @@
package event
import "github.com/stretchr/testify/mock"
type Mock struct {
M mock.Mock
}
func (m *Mock) Emit(name EventType, sessionId string, args ...interface{}) {
m.M.Called(name, sessionId, args)
}
func (m *Mock) On(name EventType, handler Handler) {
m.M.Called(name, handler)
}
func (m *Mock) OnAny(handler AnyHandler) {
m.M.Called(handler)
}