minor fixes
This commit is contained in:
parent
34b447e4e6
commit
37c879bff1
@ -36,12 +36,14 @@ func TestRouting_addBotHandler(t *testing.T) {
|
||||
gock.New("https://api.telegram.org").
|
||||
Post("/botbot123:test/getMe").
|
||||
Reply(200).
|
||||
BodyString(`{"ok":true,"status":200,"name":"TestBot"}`)
|
||||
BodyString(`{"ok":true,"result":{"id":123,"is_bot":true,"first_name":"Test","username":"TestBot"}}`)
|
||||
|
||||
ch := v1.Channel{
|
||||
Type: "telegram",
|
||||
Events: []string{
|
||||
"message_sent",
|
||||
"message_updated",
|
||||
"message_deleted",
|
||||
"message_read",
|
||||
},
|
||||
}
|
||||
@ -64,7 +66,6 @@ func TestRouting_addBotHandler(t *testing.T) {
|
||||
handler := http.HandlerFunc(addBotHandler)
|
||||
|
||||
handler.ServeHTTP(rr, req)
|
||||
|
||||
if rr.Code != http.StatusCreated {
|
||||
t.Errorf("handler returned wrong status code: got %v want %v",
|
||||
rr.Code, http.StatusCreated)
|
||||
|
@ -20,4 +20,4 @@ error_creating_connection: Ошибка при создании соединен
|
||||
connection_already_created: Соединение уже создано
|
||||
missing_url_key: Отсутствует URL или apiKey
|
||||
incorrect_url: Введите корректный URL CRM
|
||||
incorrect_token: Установите корректный токен
|
||||
incorrect_token: Установите корректный токен
|
||||
|
@ -21,4 +21,4 @@
|
||||
#logo{
|
||||
height: 80px;
|
||||
border-bottom: 1px solid red;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user