fix: убран префикс tg:// из chat_id при отправке (chat not found); тесты проверяют ChatID
All checks were successful
CI / test (push) Successful in 54s
CI / build-and-package (amd64, darwin) (push) Successful in 45s
CI / build-and-package (amd64, linux) (push) Successful in 46s
CI / build-and-package (amd64, windows) (push) Successful in 46s
CI / build-and-package (arm64, darwin) (push) Successful in 44s
CI / build-and-package (arm64, linux) (push) Successful in 47s
All checks were successful
CI / test (push) Successful in 54s
CI / build-and-package (amd64, darwin) (push) Successful in 45s
CI / build-and-package (amd64, linux) (push) Successful in 46s
CI / build-and-package (amd64, windows) (push) Successful in 46s
CI / build-and-package (arm64, darwin) (push) Successful in 44s
CI / build-and-package (arm64, linux) (push) Successful in 47s
This commit is contained in:
@@ -79,6 +79,9 @@ func TestSend(t *testing.T) {
|
||||
if len(f.sent) != 1 {
|
||||
t.Fatal("не отправлено")
|
||||
}
|
||||
if f.sent[0].ChatID != "123" {
|
||||
t.Errorf("chat_id = %q, want 123 (без префикса tg://)", f.sent[0].ChatID)
|
||||
}
|
||||
if f.sent[0].Text != "hello" {
|
||||
t.Errorf("text = %q", f.sent[0].Text)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user