feat: add callback function to mock
This commit is contained in:
@@ -43,7 +43,7 @@ func TestNewConfig_MissingEnvFile(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMockSendEmail(t *testing.T) {
|
||||
service := NewMockMailService()
|
||||
service := NewMockMailService(func(params ...interface{}) {})
|
||||
|
||||
emailData := EmailMessage{
|
||||
To: "test@example.com",
|
||||
|
||||
Reference in New Issue
Block a user