mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: mocks
This commit is contained in:
@ -10,7 +10,7 @@ type DurationServiceMock struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
func (m *DurationServiceMock) Get(time time.Time, time2 time.Time, user *models.User) ([]*models.Duration, error) {
|
||||
func (m *DurationServiceMock) Get(time time.Time, time2 time.Time, user *models.User) (models.Durations, error) {
|
||||
args := m.Called(time, time2, user)
|
||||
return args.Get(0).([]*models.Duration), args.Error(1)
|
||||
return args.Get(0).(models.Durations), args.Error(1)
|
||||
}
|
||||
|
Reference in New Issue
Block a user