package beatleader

import (
	"fmt"
	"testing"

	"git.lxtend.com/lixiangwuxian/qqbot/config"
	"git.lxtend.com/lixiangwuxian/qqbot/handler"
	"git.lxtend.com/lixiangwuxian/qqbot/model"
	"git.lxtend.com/lixiangwuxian/qqbot/service/scoresaber"
	. "github.com/bytedance/mockey"
	. "github.com/smartystreets/goconvey/convey"
)

func init() {
	Mock((*config.Config).LoadConfig).Return(nil).Build()
}

func TestBlPlus(t *testing.T) {
	Convey("TestBlPlus", t, func() {
		Mock(handler.RegisterHandler).Return().Build()
		Mock(handler.RegisterHelpInform).Return().Build()
		Mock(handler.RegisterFrontMatchHandler).Return().Build()
		Mock(scoresaber.GetSSID).Return("76561198168309881", nil).Build()
		fmt.Println(blPlus(model.Message{
			RawMsg: "bl+1",
			UserId: 1234567890,
		}))
	})
}
