1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-22 20:17:02 +00:00

Move handler tests to shared datastore mocks for #48

This commit is contained in:
James Hillyerd
2017-12-26 16:34:48 -08:00
parent 11033a5359
commit dec67622ba
2 changed files with 11 additions and 15 deletions

View File

@@ -78,7 +78,7 @@ type MockDataStore struct {
}
func (m *MockDataStore) MailboxFor(name string) (datastore.Mailbox, error) {
args := m.Called()
args := m.Called(name)
return args.Get(0).(datastore.Mailbox), args.Error(1)
}