1
0
mirror of synced 2024-11-22 04:26:01 +03:00

minor fixes

This commit is contained in:
DmitryZagorulko 2018-05-22 18:02:33 +03:00 committed by Alex Lushpai
parent 34b447e4e6
commit 37c879bff1
3 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -20,4 +20,4 @@ error_creating_connection: Ошибка при создании соединен
connection_already_created: Соединение уже создано
missing_url_key: Отсутствует URL или apiKey
incorrect_url: Введите корректный URL CRM
incorrect_token: Установите корректный токен
incorrect_token: Установите корректный токен

View File

@ -21,4 +21,4 @@
#logo{
height: 80px;
border-bottom: 1px solid red;
}
}