diff --git a/bridge/slack/helpers_test.go b/bridge/slack/helpers_test.go index 26191e07..a63cd6dd 100644 --- a/bridge/slack/helpers_test.go +++ b/bridge/slack/helpers_test.go @@ -20,8 +20,9 @@ func TestExtractTopicOrPurpose(t *testing.T) { "error - unhandled": {"some unmatched message", "unknown", ""}, } + b := &Bslack{} for name, tc := range testcases { - gotChangeType, gotOutput := extractTopicOrPurpose(tc.input) + gotChangeType, gotOutput := b.extractTopicOrPurpose(tc.input) assert.Equalf(t, tc.wantChangeType, gotChangeType, "This testcase failed: %s", name) assert.Equalf(t, tc.wantOutput, gotOutput, "This testcase failed: %s", name)