func AssertReaction(slackClient *SlackClient, reaction string, ref msg.Ref) {
	slackClient.On("AddReaction", mock.MatchedBy(func(actualReaction util.Reaction) bool {
		return util.Reaction(reaction).ToSlackReaction() == actualReaction.ToSlackReaction()
	}), ref).Once()
}
AssertReaction is a test helper to expect a given slack reaction to be added
package mocks
import (
	"encoding/json"
	"fmt"
	"regexp"
	"strings"
	"sync"
	"testing"
	"time"
	"github.com/innogames/slack-bot/v2/bot/msg"
	"github.com/innogames/slack-bot/v2/bot/util"
	"github.com/innogames/slack-bot/v2/client"
	log "github.com/sirupsen/logrus"
	"github.com/slack-go/slack"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/mock"
)
var testLock sync.Mutex
func AssertSlackMessage(slackClient *SlackClient, ref msg.Ref, text string) {
	slackClient.On("SendMessage", ref, text).Once().Return("")
}
func AssertSlackMessageRegexp(slackClient *SlackClient, ref msg.Ref, pattern string) {
	slackClient.On("SendMessage", ref, mock.MatchedBy(func(text string) bool {
		re := regexp.MustCompile(pattern)
		return re.MatchString(text)
	})).Once().Return("")
}