Skip to content

Commit

Permalink
Add Unit Test for NotifySlack
Browse files Browse the repository at this point in the history
  • Loading branch information
rizalgowandy committed Apr 19, 2022
1 parent 577bd28 commit 510a1ea
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions interceptor/slack_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package interceptor

import (
"testing"

"github.com/stretchr/testify/assert"
)

func TestNotifySlack(t *testing.T) {
type args struct {
serviceName string
mode string
sc SlackClientItf
}
tests := []struct {
name string
args args
}{
{
name: "Success",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got := NotifySlack(tt.args.serviceName, tt.args.mode, tt.args.sc)
assert.NotNil(t, got)
})
}
}

0 comments on commit 510a1ea

Please sign in to comment.