Fix typo in test handlers
Typo fix: 'Hander' -> 'Handler'
Jack Danger authored 4 years ago
James committed 4 years ago
431 | 431 | } |
432 | 432 | } |
433 | 433 | |
434 | func getConversationRepliesHander(rw http.ResponseWriter, r *http.Request) { | |
434 | func getConversationRepliesHandler(rw http.ResponseWriter, r *http.Request) { | |
435 | 435 | rw.Header().Set("Content-Type", "application/json") |
436 | 436 | response, _ := json.Marshal(struct { |
437 | 437 | SlackResponse |
447 | 447 | } |
448 | 448 | |
449 | 449 | func TestGetConversationReplies(t *testing.T) { |
450 | http.HandleFunc("/conversations.replies", getConversationRepliesHander) | |
450 | http.HandleFunc("/conversations.replies", getConversationRepliesHandler) | |
451 | 451 | once.Do(startServer) |
452 | 452 | api := New("testing-token", OptionAPIURL("http://"+serverAddr+"/")) |
453 | 453 | params := GetConversationRepliesParameters{ |
461 | 461 | } |
462 | 462 | } |
463 | 463 | |
464 | func getConversationsHander(rw http.ResponseWriter, r *http.Request) { | |
464 | func getConversationsHandler(rw http.ResponseWriter, r *http.Request) { | |
465 | 465 | rw.Header().Set("Content-Type", "application/json") |
466 | 466 | response, _ := json.Marshal(struct { |
467 | 467 | SlackResponse |
476 | 476 | } |
477 | 477 | |
478 | 478 | func TestGetConversations(t *testing.T) { |
479 | http.HandleFunc("/conversations.list", getConversationsHander) | |
479 | http.HandleFunc("/conversations.list", getConversationsHandler) | |
480 | 480 | once.Do(startServer) |
481 | 481 | api := New("testing-token", OptionAPIURL("http://"+serverAddr+"/")) |
482 | 482 | params := GetConversationsParameters{} |