1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: mocks

This commit is contained in:
Ferdinand Mütsch
2021-12-26 13:25:41 +01:00
parent 148f581906
commit ee501ca3c5
2 changed files with 9 additions and 9 deletions

View File

@ -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)
}