fix: sync WebK compatibility paths
This commit is contained in:
parent
766c5db992
commit
76bfc5100f
12 changed files with 387 additions and 8 deletions
20
internal/compat/tdesktop/config_test.go
Normal file
20
internal/compat/tdesktop/config_test.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package tdesktop
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/iamxvbaba/td/tg"
|
||||
)
|
||||
|
||||
func TestBuildConfigIncludesDefaultReaction(t *testing.T) {
|
||||
config := BuildConfig(2, "127.0.0.1", 2398, time.Unix(1, 0), "https://telesrv.net")
|
||||
reaction, ok := config.GetReactionsDefault()
|
||||
if !ok {
|
||||
t.Fatal("reactions_default is absent")
|
||||
}
|
||||
emoji, ok := reaction.(*tg.ReactionEmoji)
|
||||
if !ok || emoji.Emoticon != DefaultReactionEmoticon {
|
||||
t.Fatalf("reactions_default = %#v, want %q emoji", reaction, DefaultReactionEmoticon)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue