Codebase list golang-github-nlopes-slack / e91003a
Fix typo in test handlers Typo fix: 'Hander' -> 'Handler' Jack Danger authored 4 years ago James committed 4 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
431431 }
432432 }
433433
434 func getConversationRepliesHander(rw http.ResponseWriter, r *http.Request) {
434 func getConversationRepliesHandler(rw http.ResponseWriter, r *http.Request) {
435435 rw.Header().Set("Content-Type", "application/json")
436436 response, _ := json.Marshal(struct {
437437 SlackResponse
447447 }
448448
449449 func TestGetConversationReplies(t *testing.T) {
450 http.HandleFunc("/conversations.replies", getConversationRepliesHander)
450 http.HandleFunc("/conversations.replies", getConversationRepliesHandler)
451451 once.Do(startServer)
452452 api := New("testing-token", OptionAPIURL("http://"+serverAddr+"/"))
453453 params := GetConversationRepliesParameters{
461461 }
462462 }
463463
464 func getConversationsHander(rw http.ResponseWriter, r *http.Request) {
464 func getConversationsHandler(rw http.ResponseWriter, r *http.Request) {
465465 rw.Header().Set("Content-Type", "application/json")
466466 response, _ := json.Marshal(struct {
467467 SlackResponse
476476 }
477477
478478 func TestGetConversations(t *testing.T) {
479 http.HandleFunc("/conversations.list", getConversationsHander)
479 http.HandleFunc("/conversations.list", getConversationsHandler)
480480 once.Do(startServer)
481481 api := New("testing-token", OptionAPIURL("http://"+serverAddr+"/"))
482482 params := GetConversationsParameters{}